Calculate Overtime double time

S

shizuka

Hi...
I am having a hard time calculating over and double time.
I am making a list and i have this columns:

Start time Finish Time Reg time Overtime Double time Total hrs
8 AM 7.30 PM

To calculate the regular time I have used this formula:
=IF(((H9-G9)*24)>8,8,(H9-G9)*24)

To Overtime
=IF((H9-G9)*24>8,(H9-G9)*24-8,0)

To total Hrs
=IF((OR(H9="",G9="")),0,IF((H9<G9),((H9-G9)*24)+24,(H9-G9)*24))

And I am having trouble doing the Double time...
And I think the 3 formulas I have used aren't correct, because Regular time
cannot be more than 8h, and overtime can not be more than 4hrs... the rest
goes to double time...
Can you please help me???
 
S

Shane Devenshire

Hi,

Let's deal with the regular time first - here is a shorter formula:

=MIN(24*(H9-G9),8)

Overtime:

=MIN(MAX((H9-G9)*24-8,0),4)

Double time:

=MAX(24*(H9-G9)-12,0)

Total:

=SUM(Regular,OT,DoubleTime)

Where Regular,OT,DoubleTime just represent the cells containing the above
three formulas.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top