count_business_days
Count business days between two dates, excluding the weekends and public holidays of a given country. Returns the count along with a breakdown of excluded days.
Instructions
USE THIS to count working days between two dates instead of estimating — LLMs routinely miscount because they forget holidays or a country's weekend rule. Counts business days from start to end (both endpoints included by default), excluding that country's weekends and public holidays. Returns the count plus a breakdown of weekend days and the named holidays in range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | Start date, YYYY-MM-DD. | |
| end | Yes | End date, YYYY-MM-DD. | |
| country | Yes | ISO 3166-1 alpha-2 country code, e.g. US, GB, AE, SA, ZA. | |
| inclusive | No | Include both endpoints (default true); false excludes the start date. | |
| extraHolidays | No | Optional extra non-working dates (YYYY-MM-DD), e.g. a company shutdown day. |