Hi Everyone
Rather than hijack a post from earlier today
http://chandoo.org/forum/threads/ca...ween-two-dates-times-by-business-hours.20261/
I though I should post a new question. I think the answer is a little simpler but working through the solution for the above post I think I am losing the plot.
I have four columns
Created
Changed
Closed Time Queue
02/08/2014 17:30 04/08/2014 12:30 05/08/2014 13:30 Queue 1
02/08/2014 17:30 02/08/2014 12:30 05/08/2014 13:30 Queue 2
02/08/2014 17:30 05/08/2014 12:30 07/08/2014 13:30 Queue 3
What I am trying to do is calculate the difference in hours from the Changed column and Closed Time Column. However this is where I am getting lost. The time difference must only be calculated in working hours. That is Monday to Friday and ONLY between the hours of 8:00am and 17:30am.
There is a second complication which is there are varying service level agreements (SLA) according which support queue the record is allocated.
So for example if it is in Queue 1 that would be a 2 hour SLA and Queue 2 is 4 hour SLA. If the difference is within SLA it should report completed in time. If it is outside SLA then it should report it failed and by how many hours / minutes.
Then to add even further complication. If it falls into for example Queue 3. Then the time difference does not rely on the working hours just working days. So for example the Queue 3 above would calculate as 49.5 hours and the SLA of 24 hours would be missed by 25.5 hours. \if it was within 24 hours then it would pass.
Any help or direction would be greatly appreciated.
Regards
Ian M
Rather than hijack a post from earlier today
http://chandoo.org/forum/threads/ca...ween-two-dates-times-by-business-hours.20261/
I though I should post a new question. I think the answer is a little simpler but working through the solution for the above post I think I am losing the plot.
I have four columns
Created
Changed
Closed Time Queue
02/08/2014 17:30 04/08/2014 12:30 05/08/2014 13:30 Queue 1
02/08/2014 17:30 02/08/2014 12:30 05/08/2014 13:30 Queue 2
02/08/2014 17:30 05/08/2014 12:30 07/08/2014 13:30 Queue 3
What I am trying to do is calculate the difference in hours from the Changed column and Closed Time Column. However this is where I am getting lost. The time difference must only be calculated in working hours. That is Monday to Friday and ONLY between the hours of 8:00am and 17:30am.
There is a second complication which is there are varying service level agreements (SLA) according which support queue the record is allocated.
So for example if it is in Queue 1 that would be a 2 hour SLA and Queue 2 is 4 hour SLA. If the difference is within SLA it should report completed in time. If it is outside SLA then it should report it failed and by how many hours / minutes.
Then to add even further complication. If it falls into for example Queue 3. Then the time difference does not rely on the working hours just working days. So for example the Queue 3 above would calculate as 49.5 hours and the SLA of 24 hours would be missed by 25.5 hours. \if it was within 24 hours then it would pass.
Any help or direction would be greatly appreciated.
Regards
Ian M