← All tool references

Date & Time · not_available

Overtime Hours Calculator

Split weekly hours into regular and overtime portions.

Open public tool

Overview

Category
Date & Time
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/overtime-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/overtime-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.

hours_worked · number · required
Enter hours worked.
regular_threshold · number · required
Enter regular-hour threshold.
overtime_multiplier · number · required
Enter overtime pay multiplier.
hourly_rate · number · required
Enter hourly rate.
{
    "type": "object",
    "properties": {
        "hours_worked": {
            "type": "number",
            "description": "Enter hours worked."
        },
        "regular_threshold": {
            "type": "number",
            "description": "Enter regular-hour threshold."
        },
        "overtime_multiplier": {
            "type": "number",
            "description": "Enter overtime pay multiplier."
        },
        "hourly_rate": {
            "type": "number",
            "description": "Enter hourly rate.",
            "minimum": 0
        }
    },
    "required": [
        "hours_worked",
        "regular_threshold",
        "overtime_multiplier",
        "hourly_rate"
    ],
    "additionalProperties": false
}

Output schema

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

regular_hours · number
Regular hours produced by the tool.
overtime_hours · number
Overtime hours produced by the tool.
gross_pay · number
Illustrative gross pay produced by the tool.
{
    "type": "object",
    "properties": {
        "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": "Illustrative gross pay produced by the tool."
        }
    },
    "additionalProperties": false
}

Overtime Hours Calculator worked 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/overtime-hours-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "hours_worked": 47.5,
    "regular_threshold": 40,
    "overtime_multiplier": 150,
    "hourly_rate": 24
}'
{
    "ok": true,
    "data": {
        "slug": "overtime-hours-calculator",
        "result": {
            "values": {
                "regular_hours": 40,
                "overtime_hours": 7.5,
                "gross_pay": 1230
            },
            "display": {
                "display": "40"
            },
            "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.