I need hours worked before 7 pm and hours worked after 7pm. If this post was helpfull, please remember to click on the ''''YES'''' button at the bottom of the screen. Two values are needed, for example from 2:30PM to 5PM is 2.5 hours. If this post was helpfull, please remember to click on the ''''YES'''' button at the bottom of the screen. I then have other columns that have calculation to figure out overtime, and 5 other shift differentials. To calculate his night shift differential, first calculate his total base pay: 40 hours x $25/hr = $1,000. =ROUND((E7-D7)*96,0)/4 It totals adds up the time and converts it into a decimal of hours worked. Night shift starts at 10:00 PM - 6:00 AM (next day), please see sample below. Try this in C2: = (MAX (0, (TIME (8,0,0)-A2)*24))+ (MIN (4, (1-A2)*24))+ (MIN (0,- (TIME (8,0,0)-B2)*24))+ (IF (B2