Date Math: Add/Subtract Calendar & Business Days is a paid API for AI agents from date-math.datemath.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-21).
Adds or subtracts years, months, weeks, days, business days, hours, minutes, and seconds from a given date/datetime, with month-end clamping and business-day logic that skips weekends, custom holidays, and country-specific public holidays.
Date Math: Add or subtract years/months/weeks/days/business days/hours/minutes/seconds from a date. Month-end clamping; business days skip weekends, given holidays, and the public holidays of an optional country. Use for due dates, deadlines, delivery estimates, expiry and "N working days from today".
A JSON object containing the computed result date or datetime (ISO 8601), the original input date, the weekday name of the result, and a boolean indicating whether the result is a business day.
POSThttps://date-math.datemath.workers.dev/v1/add?utm_source=zero.xyzUse this endpoint when you need to compute a future or past date by adding or subtracting any combination of calendar units (years, months, weeks, days) or business days from a known start date, especially when you need to respect country-specific public holidays or custom holiday calendars. Prefer it over generic date libraries when business-day logic with international public holidays (207 countries) is required, or when month-end clamping semantics are important (e.g. Jan 31 + 1 month = Feb 28).
| Field | Type | Description |
|---|---|---|
| date | string | YYYY-MM-DD, or ISO 8601 datetime with Z or offset |
| days | integer | |
| hours | integer | |
| weeks | integer | |
| years | integer | |
| months | integer | |
| country | string | ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days |
| minutes | integer | |
| seconds | integer | |
| holidays | array | Extra dates excluded from business-day counts (rest days from workdays are always excluded) |
| workdays | array | Working days of the week, 0 = Sunday. Default [1,2,3,4,5] (Mon–Fri); e.g. [0,1,2,3,4] for Sun–Thu or [1,2,3,4,5,6] for Mon–Sat |
| business_days | integer | Applied after calendar units; skips rest days (see workdays) and holidays |
{
"type": "json",
"example": {
"input": "2026-12-22",
"result": "2026-12-31",
"weekday": "Thursday",
"is_business_day": true
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"