Define a relative duration
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- Time Configuration
You can define a relative duration to work out duration time for SLAs.
Procedure
Four base Relative Durations are available:
- Two business days by 4pm
- Three business days by 4pm
- Next business day by 4pm
- End of next business day
Example
Look at the End of next business day Relative Duration. From the Relative Durations list, select the End of next business day Relative Duration. The variable days is set to one, because the result of this calculation should land one day in the future. The rest of the script is as in the screenshot. If desired, you can customize the time at which you want the Relative Duration to end (currently set to 5pm).

There is one more important Relative Duration design aspect that is used by the other three out-of-box Relative Durations. To illustrate this design lets look at 2 business days by 4pm.
As you can see in the image, within the script there is an if-statement. This
if-statement is checking to see if the calculated time is after 10am. If it is, then
an extra day is added to the calculation. Hence the description of 2
business days by 4pm if before 10am
.

The "End of the business day" has nothing to do with the associated schedule. The end time of 17:00 is hard-coded into this Relative Duration script. If you want the time to be different than 5pm, you must change it in the script.