business_days
Calculate business days with configurable weekends and country-specific holidays. Check if a date is a business day, find next or previous, add days, or count days between dates.
Instructions
Business-day calculations: check if a date is a business day, find next/previous business day, add business days, count business days between dates. Supports configurable weekends and public holidays by country (US, UK, DE, JP, IR, UAE, etc.). Does NOT assume Saturday/Sunday weekend globally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Target date (YYYY-MM-DD) | |
| year | No | Year for last_of_month | |
| count | No | Number of business days to add | |
| month | No | Month (1-12) for last_of_month | |
| end_date | No | End date for count/range | |
| operation | Yes | Operation to perform | |
| start_date | No | Start date for count/range | |
| country_code | No | ISO 3166-1 alpha-2 country code, e.g. 'US', 'GB', 'DE', 'JP', 'IR' | US |