How to calculate incident SLA expiration

Puni19

New Member
Joined
Apr 19, 2015
Messages
6
Hi,

I work on a helpdesk and need to calculate when an incident SLA is due to expire, relative to the hours of contracted service. We provide service 0700 to 2300hrs 7 days a week, and are required to fix a fault within 85 minutes, I can add 85 minutes to an incident start time when the start time is well within the hours of service, however, am coming unstuck if the incident is created at say, 2230hrs. How do I calculate 30mins up to 2300hrs and then another apply the remaining 55 minutes from 0700hrs to show the SLA expires at 0755hrs?


Thanks,
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Thanks Ask2tsp,

Ideally am looking for a formula I can drag through each row, have hundreds of incidents that I need to calculate. Any idea if the incident start date and time was in H2?

Thanks,
 
Upvote 0
@Peter_SSs:
I read the forum rules a couple of weeks ago and this one had slipped my mind. Sorry about that.
But I also learned that it is not possible to send attachments with a post. I tried to useMrExel HTML Maker but it failed; posted that in the About This Board forum; no replies yet.
Since I had already prepared a small worksheet demonstrating a possible answer to the stated question it then seemed a logical next step to present it.
---
@all:
For those unable or unwilling to load the workbook now follows a description of the method used.
Rich (BB code):
slaEnd = IF( AND( iEnd <= stEnd; iEnd >= stStart ); iEnd; MOD( iEnd + outOfSrvPeriod; 1 ) )

Where:

stStart:  Start Servicetime
stEnd:      End   Servicetime
outOfSrvPeriod:   out of service period = 1 - ABS(stEnd  - stStart)
iEnd:     iStart +  slaMax
   iStart:      incident start time
   slaMax:   SLA agreed max. incident duration (in this case 1:25)

If you want one formula, so you can use it in many rows, it is best to build a function that you can use.
Every slaEnd cel has the formula
Rich (BB code):
=slaEnd(adress of cel with iStart)

and a possible implementation of the slaEnd function could be:
Rich (BB code):
Function slaEnd(iStart As Date) As Date
   Const stStart  As Date = #7:00:00 AM#
   Const stEnd    As Date = #11:00:00 PM#
   Const outOfSrvPeriod As Date = #8:00:00 AM#
   Const slaMax   As Date = #1:25:00 AM# 'max incident duration
   Dim iEnd As Date  'the incident end time
   
   iEnd = iStart + slaMax
   
   If iEnd < stStart Or iEnd > stEnd Then
      iEnd = iEnd + outOfSrvPeriod
      If iEnd > 1 Then iEnd = iEnd - 1
   End If
   slaEnd = iEnd
End Function
 
Upvote 0
@Peter_SSs:
I tried to useMrExel HTML Maker but it failed; posted that in the About This Board forum; no replies yet.
Yes, I saw your post there but could really help. I have posted something there now which may possibly trigger more responses.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top