---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Define a relative duration

# Define a relative duration {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

You can define a relative duration to work out duration time for SLAs.

## Procedure

From the left navigation pane, select System SchedulerRelative Durations..  
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

{#t_DefineARelativeDuration__ul_jyg_dpv_sx}  
Note:  
The business schedule you use defines business day durations. If you define no schedule, by default the durations are 24 X 7.

## 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 <var class="keyword varname">days</var> 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.

*[\>]: and then


