Work out how many hours lie between two times, fill in a weekly time card, add and subtract durations, or convert decimal hours to hours and minutes. Breaks and shifts that run past midnight are handled for you, and an optional hourly rate turns the weekly total into pay. Everything runs in your browser; nothing is stored or sent.
How it works
Each time is turned into minutes since midnight: 08:30 is 8 × 60 + 30 = 510 minutes. The worked time is end minus start. If the end time is earlier than the start time, the shift ran past midnight, so 24 hours (1,440 minutes) are added before subtracting. The break, in minutes, is then taken off. The result is shown two ways: as hours and minutes (h:mm) and as decimal hours, which is what most payroll and invoicing systems expect. Decimal hours are minutes divided by 60, so 45 minutes are 0.75 h and 7:45 is 7.75 h; going the other way, the fraction is multiplied by 60 (0.2 h = 12 minutes). Decimals are rounded to two places. The time card adds up each day’s hours into a weekly total; with an hourly rate, the total pay is the decimal total times the rate. The duration adder works the same way on plain durations: every row is converted to minutes, added or subtracted, and the total converted back to h:mm. Time fields use your browser’s own time picker, which shows 12-hour (AM/PM) or 24-hour times depending on your device settings; the math is the same either way.
Worked example
A shift from 8:30 AM to 5:15 PM with a 45-minute lunch break: 5:15 PM is 17:15, so the span is 17:15 − 8:30 = 8:45, and minus the break that is 8:00 h, or 8.00 in decimal. Five days like that make 40:00 h for the week; at $22.50 an hour the time card shows $900.00. A night shift from 10:00 PM to 6:30 AM with a 30-minute break crosses midnight: 6:30 + 24:00 − 22:00 = 8:30, minus 0:30 = 8:00 h.