Hi I have been trying to figure this out for weeks. I need my total daily hours in my regular hours column to only calculate up to 40 hours then anything over 40 hours to total in in the overtime cell. Right now it just totals the total work hours worked for a day in the regular hours, but I only want it to do up to 40 hours that way it only reflects regular hours then anything over that totaled in the overtime hours cell.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Day[/TD]
[TD]Date[/TD]
[TD]In[/TD]
[TD]Out[/TD]
[TD]In[/TD]
[TD]Out[/TD]
[TD]Regular[/TD]
[TD]Overtime[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Monday
[/TD]
[TD]04/23/18[/TD]
[TD]8:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD]4:30 PM[/TD]
[TD]7.50[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Tuesday[/TD]
[TD]04/24/18[/TD]
[TD]8:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD]5:30 PM[/TD]
[TD]8.50[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]Wednesday[/TD]
[TD]04/25/18[/TD]
[TD]8:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD]5:00 PM[/TD]
[TD]8.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]Thursday[/TD]
[TD]04/26/18[/TD]
[TD]8:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD]5:00 PM[/TD]
[TD]8.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]Friday[/TD]
[TD]04/27/18[/TD]
[TD]8:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD]5:15 PM[/TD]
[TD]8.25[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]Saturday[/TD]
[TD]04/28/18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Sunday[/TD]
[TD]04/29/18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Total[/TD]
[TD]40.00[/TD]
[TD]0.25[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Day[/TD]
[TD]Date[/TD]
[TD]In[/TD]
[TD]Out[/TD]
[TD]In[/TD]
[TD]Out[/TD]
[TD]Regular[/TD]
[TD]Overtime[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Monday
[/TD]
[TD]04/23/18[/TD]
[TD]8:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD]4:30 PM[/TD]
[TD]7.50[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Tuesday[/TD]
[TD]04/24/18[/TD]
[TD]8:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD]5:30 PM[/TD]
[TD]8.50[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]Wednesday[/TD]
[TD]04/25/18[/TD]
[TD]8:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD]5:00 PM[/TD]
[TD]8.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]Thursday[/TD]
[TD]04/26/18[/TD]
[TD]8:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD]5:00 PM[/TD]
[TD]8.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]Friday[/TD]
[TD]04/27/18[/TD]
[TD]8:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD]5:15 PM[/TD]
[TD]8.25[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]Saturday[/TD]
[TD]04/28/18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Sunday[/TD]
[TD]04/29/18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Total[/TD]
[TD]40.00[/TD]
[TD]0.25[/TD]
[/TR]
</tbody>[/TABLE]