Excel Formula/Template for Calculating Sum & Overage (Regular Time & Overtime)

Didn’t know how to say this better in a short way. I’m looking for a way to take the number of hours worked in a day (calculated by time in and out - I’ve got this part), for 7 days (rows), and add those hours per day to get the total number of hours for the week, but where if the total reaches 40, add the rest together in another column, so that you see the first column (regular hours) add up to 40 and anything over that be placed an a second column (overtime) and sum separately. Assuming overtime is only earned when the total number of hours physically worked goes over 40, not when one single day goes over 8.

I normally keep track of my hours in a shared Outlook calendar we all use for scheduling purposes, but it’s just text I’ve typed in and my hours are calculated manually. There’s something temporarily being added to my plate that leadership has offered overtime pay for, but I have to have it accounted for in my budget first to make sure we can support the charges. To help make the process for both easier, I figured I’d whip out a handy-dandy Excel sheet, and I can copy/paste the final version of the info into the details area instead, and it will give me the cost of the overtime payments automatically categories (regular, equivalent, overtime, and other - like sick, vacation, holiday) as well as the cost of overtime.

I a great template online, but it was only after getting it all set up and the first workweek entered that I realized it calculates overtime by day rather than by week. I have never heard of any employer that pays overtime per day (you work 9 hrs Monday and get 1 hr overtime, even though maybe you only work a total of 35 hrs that week). I thought it was standard to pay overtime in excess of 40 hrs in a pre-defined 1-week period.

I searched for a good 30 minutes or so for a good spreadsheet, but everything I’m finding only calculates overtime by the DAY, which does me no good.

Do any of you have a spreadsheet that can do this? Or do you happen to know the formula to sum a column up to a certain number and then, once the number of regular hours hits 40, sum the rest to a different (overtime) column? I wasn’t sure how to word that well for Google and my search results have been pretty useless.