Add days, weeks, or working days
add_daysAdd a whole number of days, weeks, or working_days (business days) to a date. Use when the user asks for the date a number of days or business days from another date. amount may be negative. unit weeks is seven calendar days: 3 weeks from Friday 2026-10-23 is 2026-11-13. unit working_days skips Saturday, Sunday, and that country's national public holidays, and the start date is not counted: 10 working days from Friday 2026-10-23 is 2026-11-06 when none of those weekdays is a holiday. country is required for working_days. For days and weeks it is optional and is not used in the arithmetic. The result is the landing date, its weekday, iso_week, and us_week. The request date, amount, unit, and country are not repeated. Holiday dates are the bundled vacanza/holidays list (MIT) for 2026, 2027, and 2028. A walk that leaves those years returns an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Start date, YYYY-MM-DD. | |
| unit | Yes | days, weeks (7 days), or working_days. | |
| amount | Yes | Whole number of units to add. Negative walks backward. | |
| country | No | Required when unit is working_days. ISO code or English country name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| weeks | Yes | ISO week (Monday start; week 1 contains the year's first Thursday) and US week (Sunday start; 1 January is week 1 of that calendar year). | |
| result | Yes | ||
| source | Yes | ||
| weekday | Yes | ||
| holidays | Yes | ||
| candidates | No | ||
| alternatives | No | Other cities that matched the same name, after the best-ranked city was chosen. The order is the site search order: match, then priority, then population. | |
| country_name | Yes |