Your Night Shift Started at 22:00 - How Many Hours Did You Actually Work?

Three new time tools: day counter for event countdowns, time sum for adding work hours, and time difference for shifts that cross midnight.

Patryk Matyjasik · 21 June 2026

A nurse clocks in at 22:00 on Tuesday and clocks out at 06:30 on Wednesday. The payroll system needs a single number: how many hours? The answer is 8 hours 30 minutes, or 8.50 in decimal - the format most payroll software expects. But getting there manually means dealing with midnight, two calendar days, and the question of whether 06:30 minus 22:00 is negative or just confusing.

That specific problem - subtracting one clock time from another when midnight sits between them - is exactly what the Time Difference Calculator handles. It is one of three new date and time tools on LiczGrupa's English site, joining the Day Counter and Time Sum Calculator.


192 days until New Year's Eve

Open the Day Counter, type 2026-12-31, and press Count. The result: 192 days remaining, broken down into 6 months and 10 days. The panel below shows the same gap in hours (4,622), minutes (277,363), and seconds.

Day Counter showing 192 days remaining until New Year's Eve 2026

The counter works in two directions. Set it to "Countdown" and it tells you how many days remain until a future event. Set it to "Count up" and it tells you how many days have passed since something happened. Name the event - "Summer vacation", "Project deadline", "Wedding anniversary" - and the label appears in the result.

A few things people actually count:

EventTarget dateDays remaining
Summer vacationAug 141
ChristmasDec 25187
New Year's EveDec 31192
Next leap dayFeb 29, 2028619

The counter supports dates between 1900 and 2100. For past events, it works just as well: the Moon landing (July 20, 1969) was 20,790 days ago. That is 56 years, 11 months, and 1 day.


8:30 + 7:45 + 6:15 = ?

The answer is 22 hours and 30 minutes. Not hard to do on paper - until you have five entries, some in decimal format, and you need the total in three different units for a timesheet, a billing invoice, and a project report.

The Time Sum Calculator takes up to five time entries in HH:MM format and adds them. The result appears as:

  • 22:30:00 (hours:minutes:seconds)
  • 22.50 h (decimal hours - what payroll systems want)
  • 1,350 min (total minutes - what scheduling tools want)

The parser is forgiving. Type 8.5 and it reads 8 hours 30 minutes. Type 8 and it becomes 8:00. A blue notice appears whenever auto-correction triggers, listing how many values were adjusted.

Time Sum Calculator showing 40:00:00 total for a five-day work week

A typical use: five workdays logged in one pass.

DayHours worked
Monday8:30
Tuesday7:45
Wednesday8:00
Thursday9:15
Friday6:30
Total40:00

40 hours exactly. Decimal: 40.00 h. Minutes: 2,400.


The midnight problem

Back to the nurse. Start time: 22:00. End time: 06:30. Without any extra context, the calculator sees 06:30 minus 22:00 and gets a negative number. That is not a bug - the calculator does not know whether you mean 06:30 today or 06:30 tomorrow.

One checkbox fixes it. Tick "End time is the next day" and the calculator adds 24 hours internally. Result: 08:30:00 - 8 hours 30 minutes, 8.50 decimal, 510 total minutes.

Time Difference Calculator showing 08:30:00 for a night shift from 22:00 to 06:30

Three real scenarios:

ShiftStartEndMidnight?Result
Office day08:3017:15No08:45 (8.75 h)
Night shift22:0006:30Yes08:30 (8.50 h)
Late coding21:3002:15Yes04:45 (4.75 h)

The decimal hours format matters more than most people realise. Multiply 8.75 by $30/hour and you get $262.50. No conversion step. No rounding error. That is why payroll systems prefer it.


Three tools, one pattern

All three calculators follow the same logic: take time values, do simple arithmetic, present the result in every format you might need. The Day Counter counts calendar days. The Time Sum adds durations. The Time Difference subtracts clock times. Together they cover the three most common "time math" questions people search for online.

They join the Date & Time category alongside the Age Calculator, Date Difference Calculator, and Date Calculator - making six tools total. More are coming: time zone converters, business day counters, and week calculators.


Tools discussed in this article

  • Day Counter - count days remaining to a future event or elapsed since a past date, with optional hour-level precision
  • Time Sum Calculator - add up to five time durations in HH:MM format, result in hours:minutes, decimal hours, and total minutes
  • Time Difference Calculator - find the gap between two clock times, with support for overnight shifts crossing midnight

More Date & Time tools


Check for a specific duration