← All tool references

Business Tools · execute

Overtime Calculator

Estimate weekly gross regular pay, overtime pay, overtime premium, total pay, and effective hourly rate from hours and a chosen multiplier.

Open public tool

Overview

Category
Business Tools
API mode
execute
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-calculator

View this descriptor as JSON

Execute availability

This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.

POST /api/v1/tools/overtime-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.

hourly_rate · number · required
Enter the regular hourly pay rate before overtime premiums.
regular_hours · number · required
Enter hours paid at the standard hourly rate.
overtime_hours · number · required
Enter hours that are paid at the overtime rate.
overtime_multiplier · number · required
Enter the overtime rate multiplier, such as 1.5 for time-and-a-half.
{
    "type": "object",
    "properties": {
        "hourly_rate": {
            "type": "number",
            "description": "Enter the regular hourly pay rate before overtime premiums."
        },
        "regular_hours": {
            "type": "number",
            "description": "Enter hours paid at the standard hourly rate."
        },
        "overtime_hours": {
            "type": "number",
            "description": "Enter hours that are paid at the overtime rate."
        },
        "overtime_multiplier": {
            "type": "number",
            "description": "Enter the overtime rate multiplier, such as 1.5 for time-and-a-half."
        }
    },
    "required": [
        "hourly_rate",
        "regular_hours",
        "overtime_hours",
        "overtime_multiplier"
    ],
    "additionalProperties": false
}

Output schema

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

regular_pay · number
Pay for regular hours.
overtime_pay · number
Pay for overtime.
total_pay · number
Sum of regular and overtime.
overtime_hours · number
Browser-calculated overtime hours.
{
    "type": "object",
    "properties": {
        "regular_pay": {
            "type": "number",
            "description": "Pay for regular hours."
        },
        "overtime_pay": {
            "type": "number",
            "description": "Pay for overtime."
        },
        "total_pay": {
            "type": "number",
            "description": "Sum of regular and overtime."
        },
        "overtime_hours": {
            "type": "number",
            "description": "Browser-calculated overtime hours."
        }
    },
    "additionalProperties": false
}

Overtime Calculator: Time-and-a-half

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-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "hourly_rate": 20,
    "regular_hours": 40,
    "overtime_hours": 5,
    "overtime_multiplier": 1.5
}'
{
    "ok": true,
    "data": {
        "slug": "overtime-calculator",
        "result": {
            "values": {
                "regular_pay": 800,
                "overtime_pay": 150,
                "total_pay": 950,
                "overtime_hours": 5
            },
            "display": {
                "display": "800"
            },
            "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.