An end time earlier than the start is treated as the next day (overnight shift).
Hours worked8:00
Decimal hours8
Earnings$160.00
Time from start to end8:30
Unpaid break30 min
Total minutes worked480

510 min − 30 min break = 480 min ÷ 60 = 8 hours × $20.00 = $160.00.

Hours Calculator · free calculator by CalcWorthy