← All tool references

Productivity · not_available

Work Hours Calculator

Calculate daily and weekly paid hours from shift times, breaks, and workdays.

Open public tool

Overview

Category
Productivity
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/work-hours-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/work-hours-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.

start_time · string · required
Enter the shift start used by this tool.
end_time · string · required
Enter the shift end used by this tool.
unpaid_break_minutes · number · required
Enter the unpaid break used by this tool.
days_per_week · number · required
Enter the days per week used by this tool.
hourly_rate · number · required
Enter the hourly rate used by this tool.
{
    "type": "object",
    "properties": {
        "start_time": {
            "type": "string",
            "description": "Enter the shift start used by this tool."
        },
        "end_time": {
            "type": "string",
            "description": "Enter the shift end used by this tool."
        },
        "unpaid_break_minutes": {
            "type": "number",
            "description": "Enter the unpaid break used by this tool.",
            "minimum": 0,
            "maximum": 1440
        },
        "days_per_week": {
            "type": "number",
            "description": "Enter the days per week used by this tool.",
            "minimum": 1,
            "maximum": 7
        },
        "hourly_rate": {
            "type": "number",
            "description": "Enter the hourly rate used by this tool.",
            "minimum": 0
        }
    },
    "required": [
        "start_time",
        "end_time",
        "unpaid_break_minutes",
        "days_per_week",
        "hourly_rate"
    ],
    "additionalProperties": false
}

Output schema

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

daily_hours · number
Paid hours per day produced by the tool.
weekly_hours · number
Paid hours per week produced by the tool.
daily_pay · number
Daily gross pay produced by the tool.
weekly_pay · number
Weekly gross pay produced by the tool.
shift_duration · string
Shift duration produced by the tool.
{
    "type": "object",
    "properties": {
        "daily_hours": {
            "type": "number",
            "description": "Paid hours per day produced by the tool."
        },
        "weekly_hours": {
            "type": "number",
            "description": "Paid hours per week produced by the tool."
        },
        "daily_pay": {
            "type": "number",
            "description": "Daily gross pay produced by the tool."
        },
        "weekly_pay": {
            "type": "number",
            "description": "Weekly gross pay produced by the tool."
        },
        "shift_duration": {
            "type": "string",
            "description": "Shift duration produced by the tool."
        }
    },
    "additionalProperties": false
}

Work Hours 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/work-hours-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "start_time": "08:30",
    "end_time": "17:00",
    "unpaid_break_minutes": 30,
    "days_per_week": 5,
    "hourly_rate": 22
}'
{
    "ok": true,
    "data": {
        "slug": "work-hours-calculator",
        "result": {
            "values": {
                "daily_hours": 8,
                "weekly_hours": 40,
                "daily_pay": 176,
                "weekly_pay": 880,
                "shift_duration": "8h 30m before break"
            },
            "display": {
                "display": "8"
            },
            "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.