Forum Discussion
Duration Calculation only within specified hours
Hello, I'm trying to calculate a customer response time in hours, only counting hours between 08:30 and 17:00 on working days.
The following script is working perfectly for jobs where the time of creation and start is within working hours. However, if jobs are created and/or started outside of 08:30-17:00, the clock shouldn't keep ticking. So, if a job is created at 21:00, the clock shouldn't begin counting until 08:30 the following day. If we create a job at 21:00 and start at 07:00, it should have zero hours response time. Please can someone help me figure out why I'm not getting correct results in these scenarios?
Here is the script, and a screenshot of actual results and expected results:
1 Reply
- AnonymousNot applicable
Hi CMoppet ,
I can't quite understand your measure because of the unmentioned data fields and how you define these operations.
Best regards,
Community Support Team_ Scott Chang