calculate_date_duration
Inclusive number of days between two dates, plus business days after optionally excluding weekends and 2026 US federal holidays, calendar weeks, weekend days, and holidays in the range. Use when the user needs the days or business days between two dates. For age from a birth date use calculate_age. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive date duration calculator calculator.
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": {
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "calculate_date_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | End date in YYYY-MM-DD format. | |
| start_date | Yes | Start date in YYYY-MM-DD format. | |
| exclude_holidays | No | Exclude 2026 US federal holidays from the business day count. | |
| exclude_weekends | No | Exclude Saturdays and Sundays from the business day count. The page has this checked by default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the calculation succeeded. | |
| note | Yes | Disclaimer that accompanies every result. | |
| tool | Yes | Name of the tool that ran. | |
| inputs | No | The normalized inputs the calculation used. | |
| results | Yes | The computed figures for this calculator. | |
| calculator_url | Yes | Deep link to the matching interactive calculator on everycalc.xyz. |