Help with overtime calculation

%3CLINGO-SUB%20id%3D%22lingo-sub-1713055%22%20slang%3D%22en-US%22%3EHelp%20with%20overtime%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1713055%22%20slang%3D%22en-US%22%3ESo%2C%20I%E2%80%99m%20a%20beginner%20in%20this%2C%20but%20I%E2%80%99ve%20managed%20to%20work%20out%20all%20formulas%20I%20have%20used%20so%20far%2C%20apart%20from%20this%20one.%3CBR%20%2F%3E%3CBR%20%2F%3EI%E2%80%99m%20creating%20a%20spreadsheet%20to%20help%20me%20do%20something%20called%20a%20%E2%80%98chit%E2%80%99%20-%20it%E2%80%99s%20essentially%20the%20way%20pay%20is%20worked%20out%20in%20my%20industry%20(actors)%3CBR%20%2F%3EBasically%2C%20they%20having%20different%20pay%20for%20day%20and%20night%20working.%3CBR%20%2F%3EI%20have%20the%20following%20to%20work%20out%20their%20day%20time%20pay.%3CBR%20%2F%3EStart%20time%20(H2)%20%26amp%3B%20finish%20time%20(I2)%20total%20hours%20(k2)%20contracted%20hours%20(J2)%3CBR%20%2F%3ETotal%20hours%20formula%20%3D(I2-H2%2B(I2%3CH2%20id%3D%22toc-hId--1243678392%22%20id%3D%22toc-hId--1243678392%22%20id%3D%22toc-hId--1243678392%22%20id%3D%22toc-hId--1243678392%22%20id%3D%22toc-hId--1243678392%22%20id%3D%22toc-hId--1243678392%22%20id%3D%22toc-hId--1243678392%22%3EOver%20time%20hours%20%3DMAX(0%2CK2-J2)%3CBR%20%2F%3ENow%2C%20days%20start%20from%207AM%20and%20ends%20at%2012AM%2C%20where%20night%20hours%20start%20(and%20end%20at%206AM).%3CBR%20%2F%3EI%E2%80%99ve%20worked%20out%20a%20drop%20down%20menu%20to%20select%20when%20the%20night%20rate%20kicks%20in%20but%20what%20I%E2%80%99m%20struggling%20with%20is%20when%20the%20artist%20gets%20both%20day%20overtime%20and%20night%20over%20time.%3CBR%20%2F%3EFor%20example%2C%20if%20my%20artist%20starts%20work%20at%207AM%20and%20then%20finishes%20at%202AM%20they%20will%20start%20getting%20day%20overtime%20at%207PM%20(after%20their%2010%20hour%20contract)%20and%20night%20overtime%20rate%20at%2012AM%3CBR%20%2F%3EI%20basically%20want%20a%20formula%20that%20says%20stop%20calculating%20day%20overtime%20at%2023%3A59%20and%20start%20calculating%20night%20overtime%20at%2000%3A00.%20I%20know%20I%20can%20just%20have%20other%20columns%20for%20%E2%80%98night%20start%20time%E2%80%99%20and%20%E2%80%98night%20finish%20time%E2%80%99%20but%20it%E2%80%99s%20be%20cool%20if%20my%20assistant%20directors%20didn%E2%80%99t%20have%20to%20do%20that%20and%20could%20just%20put%20in%20the%20start%20and%20end%20times.%3C%2FH2%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1713055%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1713119%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20overtime%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1713119%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F809048%22%20target%3D%22_blank%22%3E%40Danie3107%3C%2FA%3E%26nbsp%3B%20why%20not%20just%20do%20similar%20to%20what%20you%20already%20are%20doing%20and%20add%20the%20incremental%20additional%20pay%20for%20those%20hours.%26nbsp%3B%20In%20your%20example%207am-2am%20they%20are%20paid%20reg%20amt%20for%2019%20hours%20%2B%20delta%20for%20reg%20overtime%20for%207%20hours%20(7pm%20-%202am)%20%2B%20delta%20for%20night%20overtime%20for%202%20hours%20(12%20-%202)%2C%26nbsp%3B%20(BTW%207am%20-%207pm%20is%2012%20hours%20not%2010%20but%20we'll%20go%20with%20this%20as%20an%20example).%26nbsp%3B%20So%20lets%20say%20they%20get%20%2410%2Fhr%20(because%20actors%20are%20terribly%20under%20paid)%20and%20reg%20overtime%20is%20%2B20%25%20so%20%2412%2Fhr%20and%20night%20overtime%20is%20%2B30%25%20so%20%2413%2Fhr.%26nbsp%3B%20So%20in%20this%20case%20the%20formula%20is%2019hrs*%2410%2Fhr%20%2B%207hrs*%242%2Fhr%20%2B%202hrs*%241%2Fhr.%26nbsp%3B%20Now%20you%20can%20combine%20terms%20and%20such%20in%20different%20ways%20to%20make%20the%20actual%20formula%20easier%2C%20for%20example%20you%20can%3A%3C%2FP%3E%3CP%3E%3D%20(%20%5Btotal%20hours%5D%20%2B%20%5Ball%20OT%20hrs%5D*%5BOT%20rate%5D%20%2B%20%5Bnight%20OT%20hrs%5D*%5Bnight%20OT%20rate%20-%20reg%20OT%20rate%5D)%20*%20%5Breg%20pay%20rate%5D%3C%2FP%3E%3CP%3EHope%20that%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1713141%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20overtime%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1713141%22%20slang%3D%22en-US%22%3EWhoops%20at%20the%2010%2F12%20hours.%20They%E2%80%99re%20paid%20different%20rates%2C%20some%20get%20overtime%20after%2010%20and%20some%20after%2012%2C%20so%20apologies%20for%20that%2C%20I%20crossed%20both%20rates%20there!%3CBR%20%2F%3E%3CBR%20%2F%3EI%20will%20have%20a%20look%20at%20this%20suggestion%20and%20see%20if%20it%20works%20for%20me.%20At%20the%20moment%20we%20have%20just%20been%20adding%20the%20night%20overtime%20in%20an%20%E2%80%9Cadditional%20box%E2%80%9D.%3CBR%20%2F%3EWith%20it%20being%20friday%2C%20my%20brain%20is%20about%20to%20check%20out%20for%20the%20weekend%20%3B).%20Lol!%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20again%3C%2FLINGO-BODY%3E
Highlighted
New Contributor
So, I’m a beginner in this, but I’ve managed to work out all formulas I have used so far, apart from this one.

I’m creating a spreadsheet to help me do something called a ‘chit’ - it’s essentially the way pay is worked out in my industry (actors)
Basically, they having different pay for day and night working.
I have the following to work out their day time pay.
Start time (H2) & finish time (I2) total hours (k2) contracted hours (J2)
Total hours formula =(I2-H2+(I2<H2))
Over time hours =MAX(0,K2-J2)
Now, days start from 7AM and ends at 12AM, where night hours start (and end at 6AM).
I’ve worked out a drop down menu to select when the night rate kicks in but what I’m struggling with is when the artist gets both day overtime and night over time.
For example, if my artist starts work at 7AM and then finishes at 2AM they will start getting day overtime at 7PM (after their 10 hour contract) and night overtime rate at 12AM
I basically want a formula that says stop calculating day overtime at 23:59 and start calculating night overtime at 00:00. I know I can just have other columns for ‘night start time’ and ‘night finish time’ but it’s be cool if my assistant directors didn’t have to do that and could just put in the start and end times.
2 Replies
Highlighted

@Danie3107  why not just do similar to what you already are doing and add the incremental additional pay for those hours.  In your example 7am-2am they are paid reg amt for 19 hours + delta for reg overtime for 7 hours (7pm - 2am) + delta for night overtime for 2 hours (12 - 2),  (BTW 7am - 7pm is 12 hours not 10 but we'll go with this as an example).  So lets say they get $10/hr (because actors are terribly under paid) and reg overtime is +20% so $12/hr and night overtime is +30% so $13/hr.  So in this case the formula is 19hrs*$10/hr + 7hrs*$2/hr + 2hrs*$1/hr.  Now you can combine terms and such in different ways to make the actual formula easier, for example you can:

= ( [total hours] + [all OT hrs]*[OT rate] + [night OT hrs]*[night OT rate - reg OT rate]) * [reg pay rate]

Hope that helps.

Highlighted
Whoops at the 10/12 hours. They’re paid different rates, some get overtime after 10 and some after 12, so apologies for that, I crossed both rates there!

I will have a look at this suggestion and see if it works for me. At the moment we have just been adding the night overtime in an “additional box”.
With it being friday, my brain is about to check out for the weekend . Lol!

Thanks again