How the time card calculator works
For each day of the week, you enter a clock-in time, a clock-out time, and the length of any unpaid break (typically a lunch break). The calculator converts all times to minutes, subtracts the break duration from the shift length, and records the net paid hours for that day. Overnight shifts are handled correctly: if the clock-out time is earlier than the clock-in time, 24 hours are added to the end time before subtracting.
At the end of the week all daily net hours are summed. If the total exceeds a configurable overtime threshold (commonly 40 hours in the United States), hours beyond that threshold are flagged as overtime. Gross pay is calculated by multiplying regular hours by the regular rate and overtime hours by the overtime rate (commonly 1.5× the regular rate), then adding the two together.
Daily net hours = (Clock-out − Clock-in) − Break duration
All values in minutes; divide by 60 for decimal hours.
Gross pay = (Regular hours × Rate) + (Overtime hours × Overtime rate)
Overtime rate is typically 1.5× the regular rate.