Business-hours deadline / SLA
business_hours_deadlineCalculate SLA deadlines by adding business hours to a start time or measure working time elapsed between two timestamps, accounting for custom workdays, holidays, time zones, and DST.
Instructions
SLA math in working hours: the deadline N business hours after a start time, or business time elapsed between two times. Use for support-ticket SLAs, response-time targets and office-hours deadlines. Custom hours and workdays, holidays, country public holidays, DST-aware. First 25 calls per day are free, then $0.001 per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Count business time from start to end (max 1 year) | |
| hours | No | ||
| start | No | Local datetime in timezone or ISO 8601 with offset; default now | |
| country | No | ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days | |
| minutes | No | ||
| holidays | No | ||
| timezone | Yes | IANA time zone, e.g. Asia/Manila | |
| work_end | No | ||
| workdays | No | 0 = Sunday; default [1,2,3,4,5] | |
| work_start | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| mode | Yes | ||
| start | Yes | ||
| weekday | No | ||
| deadline | No | ||
| timezone | Yes | ||
| deadline_utc | No | ||
| business_hours | No | ||
| business_minutes | Yes |