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/school-days-calculator
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/school-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- Enter school start.
end_date· string · required- Enter school end.
excluded_dates· string · required- Enter holidays and breaks.
include_weekends· string · required-
Enter include weekends. Accepted values:
no, yes.
{
"type": "object",
"properties": {
"start_date": {
"type": "string",
"description": "Enter school start."
},
"end_date": {
"type": "string",
"description": "Enter school end."
},
"excluded_dates": {
"type": "string",
"description": "Enter holidays and breaks."
},
"include_weekends": {
"type": "string",
"description": "Enter include weekends.",
"enum": [
"no",
"yes"
]
}
},
"required": [
"start_date",
"end_date",
"excluded_dates",
"include_weekends"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
school_days· number- Counted school days produced by the tool.
calendar_days· number- Calendar days produced by the tool.
excluded_weekdays· number- Excluded weekdays produced by the tool.
monthly_breakdown· array- Monthly breakdown produced by the tool.
{
"type": "object",
"properties": {
"school_days": {
"type": "number",
"description": "Counted school days produced by the tool."
},
"calendar_days": {
"type": "number",
"description": "Calendar days produced by the tool."
},
"excluded_weekdays": {
"type": "number",
"description": "Excluded weekdays produced by the tool."
},
"monthly_breakdown": {
"type": "array",
"description": "Monthly breakdown produced by the tool."
}
},
"additionalProperties": false
}
School Days 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/school-days-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"start_date": "2026-08-24",
"end_date": "2027-06-04",
"excluded_dates": "2026-09-07\n2026-11-26\n2026-11-27\n2026-12-24\n2026-12-25",
"include_weekends": "no"
}'
{
"ok": true,
"data": {
"slug": "school-days-calculator",
"result": {
"values": {
"school_days": 200,
"calendar_days": 285,
"excluded_weekdays": 5,
"monthly_breakdown": [
{
"label": "2026-08",
"value": 6
},
{
"label": "2026-09",
"value": 21
},
{
"label": "2026-10",
"value": 22
},
{
"label": "2026-11",
"value": 19
},
{
"label": "2026-12",
"value": 21
},
{
"label": "2027-01",
"value": 21
},
{
"label": "2027-02",
"value": 20
},
{
"label": "2027-03",
"value": 23
}
]
},
"display": {
"display": "200"
},
"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.