cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Time formula

Former Member
0 Kudos

Hi, I was hoping someone could help me. I have an age formula I need to determine based on a specific time frame. So we need to say if the time is between 8am and 1pm then the SLA is 8 hours. But if it was submitted after 1pm then the SLA is 8am the next morning. I tried using the mid function but that only works for strings. Con anyone help?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Have you tried using Hour function?

Former Member
0 Kudos

Hi ,

Are you using stored procesure to genrate this report? Please let me know I will give you soluation.

Thanks ,

Manjunath Jogin

Former Member
0 Kudos

Thank you I completely forgot!

Former Member
0 Kudos

Hi ,

Are you using stored procesure to genrate this report? Please let me know I will give you soluation.

Thanks ,

Manjunath Jogin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Kemberly,

You can use Hour() function to check this

If Hour({YourTimeField) > 8AM and Hour({YourTimeField) < 1PM

Then Hour({YourTimeField) + 8

else

if Hour({YourTimeField) > 1PM Then

Hour({YourTimeField)+20 (this needs to be calculated based on the submission time)

Thanks,

Sastry