Business-day check
business_dayCheck if a date is a working day—and why not (weekend or public holiday)—then get the next/previous working day and monthly counts using country, custom holiday, and workweek rules.
Instructions
Is a date a business day? If not, why (weekend, or which public holiday). Also the next and previous business day, and the month's business-day count, first and last business day. Use for office-open checks, shipping cut-offs, settlement dates. Country holidays, custom holidays and custom workweeks (e.g. Sun–Thu, Mon–Sat). First 25 calls per day are free, then $0.001 per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| country | No | ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days | |
| holidays | No | Extra dates excluded from business-day counts (rest days from workdays are always excluded) | |
| workdays | No | Working days of the week, 0 = Sunday. Default [1,2,3,4,5] (Mon–Fri); e.g. [0,1,2,3,4] for Sun–Thu or [1,2,3,4,5,6] for Mon–Sat |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| month | Yes | ||
| reason | Yes | Why it is not a business day; null if it is | |
| holiday | Yes | Holiday name if the date is a holiday | |
| weekday | Yes | ||
| is_business_day | Yes | ||
| next_business_day | Yes | ||
| previous_business_day | Yes |