---
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


---

# Resolve time

# Resolve time {#ariaid-title1}

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

The Resolve time field is available on the Incident \[incident\]
and Request \[sc_request\] tables. This field allows for easy reporting on how long it takes for
requests to be closed, and is stored as an integer number of seconds.

## Business rule calculation

Specific business rules calculate the Resolve time field when the
record is resolved or marked closed, and measures the difference between the
Opened and Closed dates. The field is stored
in the system as an integer number of seconds.

* On the Incident table, the field is calculated on closure by the business rule mark_closed. The following lines of code calculate the resolve time:

      if (dataChange || current.calendar_stc.nil())
            current.calendar_stc = gs.dateDiff(opened, resolved, true);

* When the incident is closed directly, the calculation is based on the mark_closed business rule. The following lines of code calculate the resolve time:

      if (dataChange || current.calendar_stc.nil())
              current.calendar_stc = gs.dateDiff(opened, closed, true);

{#c_ResolveTime__ul_cn5_qcy_jjb}
* **[Display resolve time as a duration](https://servicenow-prod.fluidtopics.net/863JrU0h~0U4tCOWhcrvlQ)**   
  You can display the resolve time as a human-readable duration rather than an integer representing a duration in seconds.

