sla_due_time
Calculates SLA due time using business hours and working days, automatically adjusting for out-of-hours starts and country-specific holidays.
Instructions
Works out when a service-level agreement falls due, counting only business hours on working days. If the clock starts outside business hours it waits until the next working day opens. Business hours default to 09:00-17:00 and times are wall-clock in the calendar's own locality.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opens | No | Opening time, HH:MM. Defaults to 09:00. | |
| start | Yes | When the clock starts, e.g. 2026-07-27T09:00. | |
| closes | No | Closing time, HH:MM. Defaults to 17:00. | |
| country | No | ISO 3166-1 alpha-2 country code. Defaults to US. | |
| subdivision | No | Optional subdivision code, e.g. SCT. | |
| business_hours | Yes | How many business hours are allowed. |