Business-day calculations
business_daysSpan mode (from+to): business days between two dates, exclusive of the start day, inclusive of the end day. Add mode (days, optional date): the date N business days away. Passing from or to selects span mode and needs both; days and date are then ignored, so add mode takes its start date in date, not from. Optional holiday jurisdiction or custom calendar, and a selectable working week. For calendar days use add_days, subtract_days or days_between.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ISO date YYYY-MM-DD, or "today" (resolved in tz) | |
| tz | No | IANA timezone that defines "today" (e.g. Africa/Kampala). Default UTC. | UTC |
| date | No | ISO date YYYY-MM-DD, or "today" (resolved in tz) | |
| days | No | Add mode: business days to move. Negative counts backwards. | |
| from | No | ISO date YYYY-MM-DD, or "today" (resolved in tz) | |
| workweek | No | Working week. Default mon-fri (Sat+Sun weekend). | |
| jurisdiction | No | Holiday jurisdiction id: US, GB, GB-SCT, GB-NIR, IE, FR, CA, AU, UG (alias UK for GB). No default: omit for no holiday calendar. | |
| customHolidays | No | Custom organizational holiday calendar as ISO dates (mutually exclusive with jurisdiction) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | The calculated answer (kind-discriminated) | |
| receipt | Yes | Auditable receipt: inputs, timezone, convention, workweek, holiday calendar, exclusions, versions, stable result ID |