Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add 4 hours to Call Log Time 1

Status
Not open for further replies.

ann1

IS-IT--Management
Jan 23, 2003
11
GB
Hi Everyone
I need to create a formula that will add on 4 hours to the time that a call was logged to enable me to work out the percentage of calls completed within 4 hours regardless of SLA.

The problem is that if the call is logged at say 5:00 on the 1st then it needs to calculate that 4 hours will be 10:00 on the 2nd (say contract runs 8:00 - 6:00 Monday to Friday).

I have no idea how to even start this one ... I would appreciate any help!!
Thanks
 
Hi !

I think you can use the DateAdd function like this

if hour({YourDateTime}) >= 14 then
(
if weekday({YourDateTime}) = 6 then //friday
DateAdd ("h",66 ,{YourDateTime}) //will give you monday
else
DateAdd ("h",18 ,{YourDateTime})
)
else
DateAdd ("h",4 ,{YourDateTime})

/Goran
 
Hi ya
Thank you ... it works a treat!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top