A Duration expression calculates the amount of time between two
dates (example: The number of hours it takes to close an Incident).
To define a Duration expression:
- Create an expression.
- In the
Editor drop-down list, select
Duration.
The
Duration Expression section opens.
- Define the expression:
- Select a time period:
Duration expressions are applied against a 24/7 time period
by default. However, the expressions can also be applied against existing
Business Hours or new Business Hours (create impromptu using the Business Hours
Manager).
- First Date/Time: Select a Date/Time
field or calendar date/time to use as the starting point of the duration
(example: Incident.Created Date Time).
- Second Date/Time: Select a Date/Time
field or calendar date/time to use as the ending point of the duration
(example: Incident.Closed Date Time).
- Units: Select the unit of time for
which you want to display the duration (example: Days).
- Round: Select the check box to round
the unit to the nearest whole number (example: January 1st to February 10th
returns a value of one month instead of 1.37 months).
- Select a Calendar type from the
Calendar Type drop-down list:
- Select
Save.