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

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Define a relative duration

# Define a relative duration {#ariaid-title1}

Release version: Australia  
Updated March 26, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
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.{#t_DefineARelativeDuration__t_DefineARelativeDuration-context-1}

## Procedure

1. Navigate to 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, durations default to 24 x 7.
2. Select a relative duration to view or modify its configuration.
3. Customize the script variables and logic as needed for your requirements.
{#t_DefineARelativeDuration__steps_xj2_dpv_sx}

## Example

The End of next business day relative duration shows how to configure a basic calculation. The <var class="keyword varname">days</var> 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.{#t_DefineARelativeDuration__t_DefineARelativeDuration-example-1}

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`.{#t_DefineARelativeDuration__t_DefineARelativeDuration-example-2}

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.{#t_DefineARelativeDuration__t_DefineARelativeDuration-example-3}

*[\>]: and then


