Add or subtract working days
add_working_daysMove N working days from a date, skipping weekends and holidays; returns the end date and every skipped day with its reason. Delivery promises, SLA clocks, payment terms in business days. Example: start_date '2026-12-23', days 5, country 'DE', subdivision 'BY'. Calendar selection: country (ISO 3166-1 alpha-2, e.g. 'SA', 'DE', 'US') or market (MIC, e.g. 'XNYS', 'XLON'); optional subdivision (state/province/emirate code from list_calendars), categories (e.g. ['public','bank']), weekend override (['FRI','SAT']), extra_holidays (company/contract dates). Weekend defaults to the country's legal weekend. Response: result plus data_confidence (high = fixed-date calendar; medium = a lunar/moon-sighted or projected holiday is involved, or the caller overrode the weekend), estimated_items[] naming each projected date, sources[] (public references behind the calendar), data_version and warnings[].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Working days to add; negative counts backwards. | |
| market | No | Financial market MIC (XNYS, XLON, XETR, XHKG, XJPX, XSAU…) — trading/settlement calendar instead of a country. | |
| country | No | ISO 3166-1 alpha-2 country code. Required unless market is given. | |
| weekend | No | Override the weekend, e.g. ['FRI','SAT'] or ['SUN']. Default: the country's legal weekend. | |
| language | No | Language for holiday names where available (e.g. 'ar', 'de', 'en_US'). Default: the country's own. | |
| categories | No | Holiday categories to count as non-working; default ['public']. Others per country: bank, government, school, optional, half_day, catholic… | |
| start_date | Yes | ISO date to count from. | |
| subdivision | No | Sub-national code (US 'CA', DE 'BY', AE 'DU', CA 'ON', AU 'NSW', IN 'KA'…). See list_calendars. | |
| extra_holidays | No | Additional non-working ISO dates (company closures, contract-specific days). | |
| count_start_day | No | If true and start_date is a working day it counts as day 1. Default false (start the day after). | |
| include_estimated_holidays | No | Count projected lunar/moon-sighted holidays as non-working (true) or ignore them until announced (false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||