calculate_working_days_latam
Counts working days between two dates for a Latin American country (BR, MX, CL, AR, CO), excluding weekends and national holidays. Use to calculate cross-border SLA periods, invoice payment deadlines, or project timelines.
Instructions
Counts the number of working days between two dates (inclusive) for a given Latin American country, excluding weekends and that country's national public holidays (including moveable Easter-based holidays). Returns { country, start_date, end_date, working_days, holidays_excluded }. Supports BR, MX, CL, AR, CO. Use when calculating cross-border SLA periods, invoice payment deadlines, or project timelines that must account for different national holiday calendars across LatAm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country_code | Yes | Two-letter ISO country code. Example: 'BR', 'MX', 'CO' | |
| start_date | Yes | Start date in YYYY-MM-DD format, inclusive. Example: '2026-01-01' | |
| end_date | Yes | End date in YYYY-MM-DD format, inclusive. Example: '2026-01-31' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | ||
| start_date | No | ||
| end_date | No | ||
| working_days | No | ||
| holidays_excluded | No | ||
| error | No |