Date calculator: add durations, business days, difference between dates ($0.002/call)
date_calc$0.002 per call (x402, USDC on Base; free trial: add "trial": true or use try_free). [Data utilities] Date arithmetic offline: adds or subtracts durations (ISO 8601 or plain text, including business days with your weekend and holiday list), and gives the difference to a second date in calendar days, weeks, years/months/days and business days, plus weekday, ISO week, day of year and quarter. Input: date (YYYY-MM-DD, ISO date-time, Unix seconds, today or now), optional add, subtract, until, tz, weekend, holidays. Years 1000-9999.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"date": "<date>"
},
"name": "date_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | IANA time zone for today/now and local times (default UTC) | |
| add | No | Duration to add: ISO 8601 (P1M2D, PT4H) or text (3 days, -2 weeks, 10 business days, 4h 30m; m = minutes, mo = months) | |
| date | Yes | Date: YYYY-MM-DD, ISO 8601 date-time (2026-11-01T09:30, optional Z or +08:00), Unix seconds, today or now | |
| trial | No | Optional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms. | |
| until | No | Second date: returns the difference in days, weeks, years/months/days and business days | |
| weekend | No | Weekend days for business-day math, e.g. sat,sun (default), fri,sat, sun or none | |
| holidays | No | Dates to skip as holidays in business-day math: up to 400 YYYY-MM-DD, comma-separated | |
| subtract | No | Duration to subtract (same formats as add) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | ||
| cache | No | ||
| input | No | ||
| notes | No | ||
| start | No | ||
| _trial | No | Present when the call was a free trial call. | |
| result | No | ||
| applied | No | ||
| provider | No | ||
| timezone | No | ||
| price_usd | No | ||
| difference | No | ||
| business_rules | No |