← All tool references

Date & Time · not_available

Working Days Calculator

Add or subtract a number of working days from a starting date while skipping weekends and entered holidays.

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/working-days-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/working-days-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_date · string · required
Choose the starting date used in the date calculation.
working_days · number · required
Enter the working days to add or subtract used in the calculation.
holidays · string · optional
Optionally enter YYYY-MM-DD holiday dates separated by commas or new lines.
{
    "type": "object",
    "properties": {
        "start_date": {
            "type": "string",
            "description": "Choose the starting date used in the date calculation."
        },
        "working_days": {
            "type": "number",
            "description": "Enter the working days to add or subtract used in the calculation.",
            "minimum": -10000,
            "maximum": 10000
        },
        "holidays": {
            "type": "string",
            "description": "Optionally enter YYYY-MM-DD holiday dates separated by commas or new lines."
        }
    },
    "required": [
        "start_date",
        "working_days"
    ],
    "additionalProperties": false
}

Output schema

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

result_date · string
Resulting date produced by the calculation.
weekday · string
Result weekday produced by the calculation.
calendar_days_moved · number
Calendar days moved produced by the calculation.
weekend_days_skipped · number
Weekend days skipped produced by the calculation.
holidays_skipped · number
Weekday holidays skipped produced by the calculation.
{
    "type": "object",
    "properties": {
        "result_date": {
            "type": "string",
            "description": "Resulting date produced by the calculation."
        },
        "weekday": {
            "type": "string",
            "description": "Result weekday produced by the calculation."
        },
        "calendar_days_moved": {
            "type": "number",
            "description": "Calendar days moved produced by the calculation."
        },
        "weekend_days_skipped": {
            "type": "number",
            "description": "Weekend days skipped produced by the calculation."
        },
        "holidays_skipped": {
            "type": "number",
            "description": "Weekday holidays skipped produced by the calculation."
        }
    },
    "additionalProperties": false
}

Working Days 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/working-days-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "start_date": "2026-07-13",
    "working_days": 10,
    "holidays": ""
}'
{
    "ok": true,
    "data": {
        "slug": "working-days-calculator",
        "result": {
            "values": {
                "result_date": "2026-07-27",
                "weekday": "Monday",
                "calendar_days_moved": 14,
                "weekend_days_skipped": 4,
                "holidays_skipped": 0
            },
            "display": {
                "display": "2026-07-27"
            },
            "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.