Business hours and SLA clocks
Service targets are usually promised in working time : "we answer within 8 business hours" means 8 hours of opening time, not 8 hours on the clock. MyAppBuilder can count working time in workflow calculations, using a business calendar you define once for the app. This is beta .
Beta — ready to use, but some details may still change.
Business hours and SLA clocks
Service targets are usually promised in working time: "we answer within 8 business hours" means 8 hours of opening time, not 8 hours on the clock. MyAppBuilder can count working time in workflow calculations, using a business calendar you define once for the app. This is beta.
Your business calendar
Open Settings → General → Business hours.
- Working days: the weekdays you work (for example Monday to Friday).
- Working hours: the hours of every working day. Add a second stretch for a split day, for example
09:00–12:30and13:30–17:00(up to four).24:00means midnight at the end of the day. - Different hours on some days: give a working day its own hours, for example a short Saturday
09:00–12:00or a late Thursday. They replace the working hours on that weekday only. - Holidays: one per line, days when nobody works even on a working day.
YYYY-MM-DDis one date (2027-04-05);MM-DDis the same date every year (12-25,01-01). A recurring02-29only applies in leap years. Holidays that move every year (Easter Monday) are listed by date. - Time zone: the hours are wall-clock times in this zone. Leave it empty to use the app's time zone.
Without a calendar of your own, the app uses Monday–Friday 09:00–17:00 in the app's time zone with no holidays. The calendar with the key default replaces that built-in one; you can add more calendars (for example a weekend desk with the key weekend) and name them in formulas. A calendar that a workflow still uses can't be deleted.
For a round-the-clock desk, set every day with 00:00–24:00.
The four functions
Use them in a Calculate step (or a Set values calculation), exactly like add_hours and hours_between:
| Function | Result |
|---|---|
add_business_hours(datetime, n) | The moment when n working hours have passed (decimals allowed: 0.5 = 30 minutes). Store it with Date and time format. |
add_business_minutes(datetime, n) | The same in minutes. |
business_hours_between(from, to) | Working hours between two moments (negative when to is earlier). |
business_minutes_between(from, to) | The same in minutes. |
Add a calendar key in quotes as the last argument to use another calendar: add_business_hours({{results.t.0.opened_at}}, 8, "weekend").
How time is counted:
- A start outside working hours counts from the next opening: 1 business hour from Saturday 10:00 is Monday 10:00.
- A result can end exactly at closing time: 8 business hours from Monday 09:00 is Monday 17:00 (not Tuesday 09:00). Adding
0returns the start unchanged. - Daylight-saving changes are handled in the calendar's time zone: a 09:00–17:00 day is always 8 real hours, and Friday 16:00 + 2 business hours is Monday 10:00 local time on either side of the change.
- Values without a zone are read as UTC, like every date-time in workflows; results are stored in UTC.
{ "type": "calculate", "as": "due", "format": "datetime",
"formula": "add_business_hours({{results.t.0.opened_at}}, {{results.sla.0.resolution_hours}})" }Pausing an SLA clock
To stop the clock while you wait for someone else, record when it paused and, when it resumes, push the due time by the working time that passed:
- Pause: set the record's status (for example Waiting on Customer) and save
{{now}}in a Paused At field. - Resume: calculate
round(business_minutes_between({{results.t.0.paused_at}}, {{now}}), 2)aspaused, thenadd_business_minutes({{results.t.0.due_at}}, {{results.paused}})as the new due time, addpausedto a Paused Minutes total and clear Paused At. - Leave the paused status out of your "overdue" filters, so a paused record is never escalated.
The Request & Ticket Management starter (version 1.2.0 and later) does exactly this: agents use Wait on customer and Resume on a ticket, a customer's reply resumes it automatically, and resolving a waiting ticket resumes it first so the paused time never counts against the SLA. Re-triaging keeps the time already paused. Apps on version 1.1.0 can upgrade under More → Modules; existing due times stay as they were until a ticket is triaged again.
Resolution time in business hours
Elapsed time (hours_between) and working time answer different questions. Since version 1.3.0 the Request & Ticket Management starter records both when a ticket is resolved:
- Resolution Hours: clock hours from opening to resolution.
- Resolution Business Hours: working hours of the app's default calendar from opening to resolution, minus the time the ticket waited on the customer (Paused Minutes):
max(round(business_hours_between({{results.t.0.opened_at}}, {{now}}) - {{results.t.0.paused_minutes}} / 60, 2), 0).
The Reports page shows the average of each, and the ticket page shows both. Upgrading from 1.2.0 (More → Modules) adds the field and the report; tickets resolved before the upgrade keep it empty.
Setting business hours with the AI
The AI bar understands requests such as "Set business hours to Mon–Fri 8–18 Paris time", "Saturday 9–12 too" or "Add 12-25 as a holiday every year". It changes the calendar with the same command as the settings card, and only the calendar.
Limits
- One calendar per calculation; use a second calendar (and its key in the formula) if a team works different hours.
- Holidays that move every year (Easter, lunar new year) must be listed by date.
- A calculation can look about ten years ahead at most.
- The Request & Ticket Management starter uses the app's default calendar for every priority.