← All tool references

Business Tools · not_available

Timesheet Calculator

Total regular hours, overtime hours, and gross pay from multiple shifts.

Open public tool

Overview

Category
Business Tools
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/timesheet-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/timesheet-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

shifts · string · required
Enter date | start time | end time | unpaid break minutes.
overtime_threshold · number · required
Enter the weekly overtime threshold used by this tool.
hourly_rate · number · required
Enter the hourly rate used by this tool.
overtime_multiplier · number · required
Enter the overtime multiplier used by this tool.
{
    "type": "object",
    "properties": {
        "shifts": {
            "type": "string",
            "description": "Enter date | start time | end time | unpaid break minutes."
        },
        "overtime_threshold": {
            "type": "number",
            "description": "Enter the weekly overtime threshold used by this tool.",
            "minimum": 0,
            "maximum": 168
        },
        "hourly_rate": {
            "type": "number",
            "description": "Enter the hourly rate used by this tool.",
            "minimum": 0
        },
        "overtime_multiplier": {
            "type": "number",
            "description": "Enter the overtime multiplier used by this tool.",
            "minimum": 1,
            "maximum": 5
        }
    },
    "required": [
        "shifts",
        "overtime_threshold",
        "hourly_rate",
        "overtime_multiplier"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

total_hours · number
Total paid hours produced by the tool.
regular_hours · number
Regular hours produced by the tool.
overtime_hours · number
Overtime hours produced by the tool.
gross_pay · number
Estimated gross pay produced by the tool.
shift_results · array
Shift results produced by the tool.
{
    "type": "object",
    "properties": {
        "total_hours": {
            "type": "number",
            "description": "Total paid hours produced by the tool."
        },
        "regular_hours": {
            "type": "number",
            "description": "Regular hours produced by the tool."
        },
        "overtime_hours": {
            "type": "number",
            "description": "Overtime hours produced by the tool."
        },
        "gross_pay": {
            "type": "number",
            "description": "Estimated gross pay produced by the tool."
        },
        "shift_results": {
            "type": "array",
            "description": "Shift results produced by the tool."
        }
    },
    "additionalProperties": false
}

Timesheet Calculator example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/timesheet-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "shifts": "2026-07-13 | 08:30 | 17:00 | 30\n2026-07-14 | 08:15 | 17:30 | 30\n2026-07-15 | 09:00 | 18:00 | 45\n2026-07-16 | 08:30 | 17:00 | 30\n2026-07-17 | 08:00 | 16:30 | 30",
    "overtime_threshold": 40,
    "hourly_rate": 24,
    "overtime_multiplier": 1.5
}'
{
    "ok": true,
    "data": {
        "slug": "timesheet-calculator",
        "result": {
            "values": {
                "total_hours": 41,
                "regular_hours": 40,
                "overtime_hours": 1,
                "gross_pay": 996,
                "shift_results": [
                    {
                        "date": "2026-07-13",
                        "start": "08:30",
                        "end": "17:00",
                        "break_minutes": 30,
                        "paid_hours": 8
                    },
                    {
                        "date": "2026-07-14",
                        "start": "08:15",
                        "end": "17:30",
                        "break_minutes": 30,
                        "paid_hours": 8.75
                    },
                    {
                        "date": "2026-07-15",
                        "start": "09:00",
                        "end": "18:00",
                        "break_minutes": 45,
                        "paid_hours": 8.25
                    },
                    {
                        "date": "2026-07-16",
                        "start": "08:30",
                        "end": "17:00",
                        "break_minutes": 30,
                        "paid_hours": 8
                    },
                    {
                        "date": "2026-07-17",
                        "start": "08:00",
                        "end": "16:30",
                        "break_minutes": 30,
                        "paid_hours": 8
                    }
                ]
            },
            "display": {
                "display": "41"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.