Define a relative duration
Define relative durations to calculate duration time for SLAs based on business schedules and specific time requirements.
Before you begin
Role required: admin
About this task
Relative durations calculate time periods based on business schedules. You can customize existing relative durations or create new ones to meet specific SLA requirements.
Procedure
Example
The End of next business day relative duration shows how to configure a basic calculation. The days variable is set to one because the result should land one day in the future. You can customize the end time (currently set to 5pm) in the script.
The 2 business days by 4pm relative duration demonstrates conditional logic. The script includes an if-statement that checks whether the calculated time is after 10am. If it is, an extra day is added to the calculation. Therefore, the description reads 2 business days by 4pm if before 10am.
The end time of 17:00 is hard-coded into the relative duration script and is not related to the associated schedule. To change the end time from 5pm, modify the script directly.