calendar.business-days
Calculate business days accounting for holidays in 200+ countries. Add or count business days between dates, check if a date is a business day, and customize weekends.
Instructions
Holiday-aware business-day calculator for 200+ countries — the ground-truth answer for payment terms, SLA deadlines, and delivery dates instead of guessing holidays. Three modes: start+addDays shifts a date by N business days (signed); start+end counts business days between two dates (exclusive of start, inclusive of end); start alone checks one date (business day? which holiday? next/previous business day). Custom weekends supported (e.g. fri,sat for the Gulf). Skipped holidays are itemized.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End date YYYY-MM-DD to count business days to (XOR with addDays). | |
| start | Yes | Anchor date, YYYY-MM-DD. | |
| types | No | Optional holiday types treated as closures. Default public,bank. | |
| region | No | Optional subdivision code, e.g. CA, BY. | |
| addDays | No | Signed business days to add (XOR with end). | |
| country | Yes | ISO 3166-1 alpha-2 country code. | |
| weekend | No | Optional weekend days, comma-separated. Default sat,sun. |