robpickering
Giga Guru

OOB these two fields are defined as:


Duration (calendar_duration)


Business Duration (business_duration)



Duration should be the wall-clock time from when the ticket was opened.


Business Duration should be the wall-clock time, based on a business schedule, that has elapsed.



It appears that calendar_duration is calculated using gs.dateDiff(opened, closed, false), whereas business_duration is calculated using gs.calDateDiff(opened, closed, false).



There is a good thread here about it:   difference between calDateDiff and dateDiff



TL;DR:   Both are legacy fields and probably shouldn't be leveraged at this point.   The answer to the question is that calendar_duration calculates based on the "Default Calendar", which is no longer supported.



Hope that helps.



-Rob