HomeAll CategoriesTime Calculator: Hours, Time Card & Duration (Free)

Time Calculator: Hours, Time Card & Duration (Free)

Time Calculator

Free online time calculator for hours and minutes. Find the time between two times, total a weekly time card with lunch and overtime, add or subtract time, measure date and time duration, convert time to decimal, solve speed distance time, and convert time zones. Every answer shows the formula with your own numbers.

Time DurationTime CardAdd TimeDate & TimeTime to DecimalSpeed Distance TimeTime Zones

🧮 1. Time Calculator

Inputs

Find the time between two times on one day or across midnight, minus an unpaid break.

Examples: 8:45, 08:45:30, 8:45 AM, 0845
If it is earlier than the start, the shift crosses midnight
Lunch or other unpaid time. 0 if none. Range 0 to 1440

Result shown below. Edit any box and press Calculate to update.

Your Result

___
Press Calculate
Your answer
___
Calculation
Duration = End − Start (+ 24 h if it crosses midnight) − Break
___

Download your result as a plain text file.

📊 2. Your Results

Pick a mode, enter your times above, then press Calculate Time. Your answer in hours and minutes, decimal hours, the formula with your own numbers, a full results table, two charts and the export buttons will appear here.

⚡ Quick Answer

A time calculator finds the time between two times: subtract the start from the end, add 24 hours if the end is past midnight, then take off any unpaid break.

8:45 AM to 5:20 PM = 8 h 35 min; minus 30 min lunch = 8 h 05 min = 8.08 hours

Rule of thumb: divide minutes by 60 for decimal hours, so 7:45 is 7.75 hours, not 7.45.

Key Takeaways

  • A time calculator turns clock times into seconds, does plain arithmetic, then converts back to hours and minutes.
  • If a shift ends earlier on the clock than it started, add 24 hours: 10:00 PM to 6:30 AM is 8 h 30 min.
  • Decimal hours = hours + minutes ÷ 60, so 15 minutes is 0.25 and 45 minutes is 0.75.
  • Under the US FLSA, hours over 40 in a workweek are paid at 1.5 times the regular rate for non-exempt staff.
  • Time = distance ÷ speed, so 350 km at 90 km/h takes 3 h 53 min 20 s.

📚 3. What Is a Time Calculator?

A time calculator is a tool that does arithmetic with hours, minutes and seconds. Ordinary numbers use base 10. Time uses base 60 for minutes and seconds and base 24 for hours, so normal calculator keys give wrong answers. A time calculator handles those carry-overs for you.

This page combines seven calculators in one tool, because people searching for "calculate time" usually need one of these:

  • Time duration calculator: the time between two times, even across midnight.
  • Time card calculator: a full week of clock in and clock out times, with lunch breaks, overtime and pay.
  • Time addition calculator: add or subtract a list of times, find the average, or add time to a clock.
  • Date and time duration calculator: the exact gap between two dates and times, with weekdays counted.
  • Time to decimal calculator: turn 7:45 into 7.75 hours for payroll, or back again.
  • Speed distance time calculator: drive time, flight time or average speed.
  • Time zone calculator: what time it will be in another city, with daylight saving.

A worked one-liner: 8:45 AM is 31,500 seconds after midnight and 5:20 PM is 62,400 seconds. The gap is 30,900 seconds, which is 8 hours 35 minutes. Take off a 30 minute lunch and you worked 8 hours 5 minutes, or 8.08 decimal hours.

How a time calculator avoids base-60 mistakes08:45 / 17:20two clock times31,500 / 62,400seconds after midnight30,900 send minus start8 h 35 minback to h:mmThen subtract the 30 minute break: 8 h 05 min = 8.08 decimal hours
Every mode works the same way: turn the times into seconds, do the sum, then turn the answer back into hours and minutes.

Who uses it: hourly workers checking a paycheck, managers filling a time sheet, freelancers billing clients, students timing study sessions, swimmers and runners adding lap splits, drivers planning a trip, and teams booking meetings across time zones.

ToolWhat it answersUse it when
Time calculator (this page)Hours and minutes between times, totals, decimals, payThe answer is a length of time
Date calculatorDays between dates, a date N days from todayThe answer is a calendar date or a day count
SpreadsheetAnything, if the formula and format are rightYou need to keep records for many weeks or staff
Time clock appRecords punches automaticallyA business needs audit trails for payroll

🧠 4. Interpretation of Your Result

Run the calculator above to fill this section with your own numbers. Your result is ___. The sub-sections below explain every part of the output.

4.1 What is the difference between hours and minutes and decimal hours?

The calculator shows the same answer two ways. "8 h 05 min" is how a person reads time. "8.08 h" is how payroll and spreadsheets read it. Both are correct, but they are not interchangeable. 8.05 hours would be 8 hours and 3 minutes, which is a different amount.

4.2 Why is 7:45 not 7.45 hours?

Minutes are sixtieths of an hour. 45 minutes is 45 ÷ 60 = 0.75 hours, so 7:45 is 7.75 hours. Writing 7.45 drops 18 minutes. Over a 40 hour week of such errors, a worker can lose more than an hour of pay.

4.3 How does the time calculator handle midnight?

When the end time is earlier than the start time, the period ran past midnight. The calculator adds 24 hours to the end before subtracting. A night shift from 10:00 PM to 6:30 AM is therefore 8 hours 30 minutes, not minus 15 hours 30 minutes.

4.4 Are breaks paid or unpaid?

Only unpaid breaks should be entered in the break box. Under US federal guidance, short rest breaks of about 5 to 20 minutes are normally paid work time, while a real meal period of 30 minutes or more where you are fully relieved of duty is usually unpaid. These rules are in the federal hours worked regulation, 29 CFR Part 785. Check your employer policy and state law.

4.5 When do regular hours become overtime?

For a time card, total hours are split into regular hours, up to the threshold, and overtime hours above it. The US default is 40 hours per workweek at 1.5 times pay. Some states also have daily overtime, for example over 8 hours in a day in California. Use the daily box for that rule. The federal rule is set out on the US Department of Labor overtime page.

Hours matter for more than pay. In US data, jobs with overtime schedules had a 61% higher injury hazard rate than jobs without overtime (Dembe et al., 2005). A meta-analysis of more than 600,000 people linked working 55 hours or more a week with a 33% higher risk of stroke than a standard 35 to 40 hour week (Kivimäki et al., 2015). A time calculator is a simple way to see when a week is drifting into that range.

4.6 Is time clock rounding legal?

Many employers round punches to the nearest 5, 6 or 15 minutes. US rules allow this only if, over time, it does not shortchange workers. Use exact times when you are checking your own pay, and the rounding option when you need to match your employer report.

4.10 How long can a shift be before it becomes risky?

Research points to two danger zones: very long shifts and night work. Accident risk rises across successive night shifts and in the later hours of long shifts (Folkard & Tucker, 2003), and shift work is linked with short sleep and poorer health (Kecklund & Axelsson, 2016). If your time calculator result shows a Long day or Very long day badge several times a week, plan recovery time.

4.7 Does daylight saving change elapsed time?

Between two dates, the real elapsed time can differ from the clock difference by one hour when a daylight saving change falls in between. This tool reports the real elapsed time and tells you when a clock change happened.

4.8 What should you do with your result?

  • Copy the decimal hours into your time sheet or invoice.
  • Download the TXT or PDF so you have a dated record.
  • If the number will be used for pay, compare it with your pay stub and ask about any gap of more than a few minutes.

4.9 What mistakes does this time calculator prevent?

  • Reading minutes as hundredths (7:45 as 7.45).
  • Negative hours on overnight shifts.
  • Forgetting to remove an unpaid lunch.
  • Adding 50 minutes and 40 minutes and writing 0:90 instead of 1:30.
  • Using a fixed time zone offset that is wrong half the year because of daylight saving.

✍ 5. How to Use Your Result

Run the calculator above to auto-fill all five cards with your result.

1. Plain summary to save or share
Your result is ___.
2. Questions to ask your manager, payroll team or host
Questions to ask before you use this number: ___
3. Goal or plan
Plan: My result is ___. Next time I will aim for ___.
4. Tracking log
Tracking log | Date: ___ | Result: ___ | Check again on: ___
5. Formal wording for a report or invoice
Time was calculated with the StatsUnlock Time Calculator. Result: ___

∑ 6. Time Calculator Formulas Used

①
Time Between Two Times
Duration = (End − Start + 1440 if End < Start) − Break   (all in minutes)
Start, EndMinutes after midnight, for example 8:45 AM = 525
1440Minutes in one day, added only when the period crosses midnight
BreakUnpaid minutes, unitless count
Example1040 − 525 − 30 = 485 min = 8 h 05 min
②
Time to Decimal Hours, and Back
Decimal h = h + m ÷ 60 + s ÷ 3600  ·  m = (decimal part) × 60
h, m, sHours, minutes and seconds
Rule6 minutes = 0.1 hour exactly; 1 minute is about 0.0167 hour
Example7:45 = 7 + 45 ÷ 60 = 7.75 h; 7.75 h back = 7 h + 0.75 × 60 = 45 min
③
Adding and Subtracting Time
Total s = Σ(±tᵢ) × k  ·  h = ⌊s ÷ 3600⌋, m = ⌊(s mod 3600) ÷ 60⌋
tᵢEach entry in seconds, negative to subtract
kMultiplier, unitless (5 for five days)
AverageΣtᵢ ÷ n, the average time calculator result
Example1:45 + 2:30 + 0:50 + 1:15 = 6:20, average 1:35
④
Time Card: Overtime and Time and a Half
OT = max(0, H − T)  ·  Pay = (H − OT) × R + OT × R × M
HTotal hours worked in the week
TOvertime threshold in hours, 40 under the US FLSA
RRegular hourly rate, dollars per hour
MOvertime multiplier, 1.5 for time and a half, unitless
Example46.5 h at $20: 40 × 20 + 6.5 × 20 × 1.5 = $995
⑤
Date and Time Duration
Elapsed s = (End date-time − Start date-time) ÷ 1000   (from millisecond timestamps)
Days⌊s ÷ 86400⌋, where 86,400 is seconds per day
MonthsCounted with each month real length, borrowing days from the month before
NoteA daylight saving change inside the range adds or removes one hour of real time
⑥
Speed, Distance and Time
Time = Distance ÷ Speed  ·  Speed = Distance ÷ Time  ·  Distance = Speed × Time
Distancekm, miles, metres or nautical miles
Speedkm/h, mph, m/s or knots; 1 mile = 1.609344 km
Example350 ÷ 90 = 3.8889 h = 3 h 53 min 20 s
⑦
Time Zone Conversion
Local₂ = Local₁ − Offset₁ + Offset₂
OffsetHours from UTC on that exact date, including daylight saving
SourceThe IANA time zone database built into your browser
Example9:00 AM New York (UTC−5) = 14:00 UTC = 7:30 PM India (UTC+5:30)

📝 7. How Do You Use This Time Calculator?

Worked example used in every step: a shift from 8:45 AM to 5:20 PM with a 30 minute unpaid lunch.

  1. Pick a mode. Choose Time Duration, Time Card, Add / Subtract, Date & Time, Time to Decimal, Speed Distance Time or Time Zones from the tabs at the top of the calculator.
  2. Enter the start time. In Time Duration mode, type 8:45 AM. You can also type 08:45, 0845 or 8:45 am. Seconds are allowed, such as 8:45:30.
  3. Enter the end time. Type 5:20 PM. If the end is earlier than the start, for example a night shift ending at 6:30 AM, the calculator adds a day by itself.
  4. Enter the unpaid break. Type 30 for a 30 minute lunch. Leave 0 if the break is paid or there was none.
  5. Choose the display. Pick 12-hour or 24-hour clock display and the number of decimal places. The default is 2 decimal places.
  6. Press Calculate Time. The page already shows the default example. After you change any box, press the button to update. For the example the result panel shows 8 h 05 min, a Standard working day.
  7. Read the calculation strip. Under the inputs you see 5:20 PM minus 8:45 AM = 8 h 35 min, minus 30 min break = 8 h 05 min, so you can check every step.
  8. Check Your Results. Section 2 gives decimal hours (8.08), total minutes (485), a results table, and two charts showing your period on a 24 hour timeline.
  9. Try the time card. Load the sample Full week time card with overtime. The result appears at once: 46.50 hours, 6.50 overtime hours and $995.00 gross pay at $20 per hour.
  10. Save your answer. Press Download TXT for a short record, or Download Doc or Download PDF in Section 2 for the full report.

📈 8. How Do You Calculate Time in Excel?

Excel stores a time as a fraction of a day. 12:00 PM is 0.5 and 6:00 AM is 0.25. So to get hours you subtract two times and multiply by 24. The only tricks are shifts that cross midnight and showing totals over 24 hours.

The whole thing in one line: with start in B2, end in C2 and break minutes in D2, type =MOD(C2-B2,1)*24-D2/60. That gives decimal hours worked, even for night shifts.

8.1 The functions you need

You wantExcel formulaNote
Hours between two times=(C2-B2)*24Wrong (negative) if the shift crosses midnight
Hours across midnight=MOD(C2-B2,1)*24MOD wraps a negative gap into the next day
Minus a break in minutes=MOD(C2-B2,1)*24-D2/60Divide minutes by 60 to get hours
Show as h:mm=E2/24 with format [h]:mmSquare brackets stop totals resetting at 24
Time to decimal=A2*247:45 becomes 7.75
Decimal to time=A2/24 formatted h:mm7.75 becomes 7:45
Overtime=MAX(0,E8-40)Hours above the 40 hour threshold
Add minutes to a time=A2+TIME(0,90,0)TIME rolls 90 minutes into 1:30
Date and time duration=(B2-A2)*24Cells hold full date-times
Weekdays between dates=NETWORKDAYS(A2,B2-1)Matches this tool, which excludes the end date

8.2 Step by step

1 Type the week into four columns

Put Day in column A, clock in in B, clock out in C and unpaid break minutes in D. Type times as 08:45 so Excel stores them as times. B2: 08:45

Xtime-card.xlsx - ExcelB2fx08:45ABCDE1DayInOutBreakHours2Mon08:4517:20303Tue09:0017:30304Wed08:3018:15455Thu08:5017:05306Fri22:0006:30307Sat07:0012:400

Six working days, with a night shift on Friday from 22:00 to 06:30.

2 Work out hours for each day

In E2 type the formula and fill it down to E7. MOD handles Friday, where 06:30 is earlier than 22:00. =MOD(C2-B2,1)*24-D2/60

Xtime-card.xlsx - ExcelE2fx=MOD(C2-B2,1)*24-D2/60ABCDE1DayInOutBreakHours2Mon08:4517:20308.083Tue09:0017:30308.004Wed08:3018:15459.005Thu08:5017:05307.756Fri22:0006:30308.007Sat07:0012:4005.67

Monday is 8.08 hours, Thursday 7.75, Friday 8.00 and Saturday 5.67, the same as the calculator.

3 Show the hours as h:mm if you prefer

Divide decimal hours by 24 and apply the custom number format [h]:mm. =E2/24

Xtime-card.xlsx - ExcelF2fx=E2/24 format [h]:mmABC1DayHoursh:mm2Mon8.088:053Thu7.757:454Sat5.675:40

8.08 hours displays as 8:05 and 5.67 hours as 5:40.

4 Total the week

Sum the decimal column. Decimal hours add up safely, while h:mm cells need the [h] format to pass 24. =SUM(E2:E7)

Xtime-card.xlsx - ExcelE8fx=SUM(E2:E7)ABCDE1DayInOutBreakHours2Mon08:4517:20308.083Tue09:0017:30308.004Wed08:3018:15459.005Thu08:5017:05307.756Fri22:0006:30308.007Sat07:0012:4005.678Total46.50

The week totals 46.50 hours.

5 Split overtime and work out pay

Overtime is hours above 40. Pay is regular hours at the base rate plus overtime at time and a half. =MAX(0,B1-40) =(B1-B2)*B3+B2*B3*1.5

Xtime-card.xlsx - ExcelB4fx=(B1-B2)*B3+B2*B3*1.5AB1Total hours46.502Overtime6.503Rate$20.004Gross pay$995.00

6.50 overtime hours and $995.00 gross pay at $20 per hour, matching Sections 9 and 10.

8.3 The awkward cases

  • Night shifts: plain =C2-B2 returns a negative time, which Excel shows as #####. Use MOD, or =C2-B2+(C2< B2).
  • Totals over 24 hours: the format h:mm shows 46:30 as 22:30. Use [h]:mm.
  • Times typed as text: a left-aligned "8:45" is text. Fix it with =TIMEVALUE(B2).
  • Negative durations: Excel will not display a negative time in the default 1900 date system. Keep durations in decimal hours if you need negatives.
Where Excel disagrees with this tool: if you enter a weekly total in h:mm without the square bracket format, Excel quietly hides every full day. This tool always shows the full total, for example 46 h 30 min.

8.4 Why answers differ across software

Excel, R, Python and this calculator all give 46.50 hours and $995.00 for the sample week, because they all work in minutes and use MOD to wrap overnight shifts. Differences only appear from display rounding: 8 h 05 min is 8.0833 hours, which shows as 8.08 at two decimal places. Add the unrounded values, not the rounded ones, or a long time sheet can drift by a few hundredths. Excel also treats 1900 as a leap year, which only matters for dates before March 1900.

8.5 Charting your hours

Select the Day and Hours columns, choose Insert, then Clustered Column. Add a horizontal line at 40 by adding a second series filled with 40 and changing it to a line chart. This gives the same picture as Chart 1 in Section 2.

8.6 Error messages

ErrorCauseFix
#####A negative time, or the column is too narrowUse MOD for night shifts, or widen the column
#VALUE!A time stored as textRetype it, or wrap it in TIMEVALUE
#NUM!A date before 1900 or an impossible timeCheck the date system and the typed value
#DIV/0!Average of an empty rangeUse =IFERROR(AVERAGE(E2:E7),0)

Google Sheets: every formula above works the same way in Google Sheets. Use Format, Number, Custom number format, and type [h]:mm for totals over 24 hours.

📈 9. How Do You Calculate Time in R?

Base R is enough for time card maths. The script below reads the same six-day week, handles the Friday night shift with the modulo operator %%, prints regular hours, overtime and pay, and saves one 300 dpi chart. It needs no extra packages.

9.1 The complete script

# ============================================================
# Time Calculator: weekly time card with lunch and overtime
# StatsUnlock.com  |  same numbers as the online calculator
# ============================================================

# 1. Your week. Change only this block (24-hour clock, break in minutes).
week <- data.frame(
  day       = c("Mon", "Tue", "Wed", "Thu", "Fri", "Sat"),
  clock_in  = c("08:45", "09:00", "08:30", "08:50", "22:00", "07:00"),
  clock_out = c("17:20", "17:30", "18:15", "17:05", "06:30", "12:40"),
  break_min = c(30, 30, 45, 30, 30, 0),
  stringsAsFactors = FALSE
)
# week <- read.csv("timesheet.csv", stringsAsFactors = FALSE)   # or load from a file
week <- week[!is.na(week$clock_in) & !is.na(week$clock_out), ]  # skip missing punches

rate     <- 20.00   # pay per hour
ot_after <- 40      # weekly overtime threshold in hours (US FLSA)
ot_mult  <- 1.5     # time and a half

to_minutes <- function(hhmm) {
  p <- do.call(rbind, strsplit(hhmm, ":"))
  as.numeric(p[, 1]) * 60 + as.numeric(p[, 2])
}

# 2. Minutes worked each day. %% 1440 handles shifts that cross midnight.
span <- (to_minutes(week$clock_out) - to_minutes(week$clock_in)) %% 1440
week$hours <- (span - week$break_min) / 60

# 3. Weekly totals, overtime and pay
total    <- sum(week$hours)
overtime <- max(0, total - ot_after)
regular  <- total - overtime
pay      <- regular * rate + overtime * rate * ot_mult

hm <- function(h) { m <- round(h * 60); sprintf("%d h %02d min", m %/% 60, m %% 60) }

print(transform(week, hours = round(hours, 2)), row.names = FALSE)
cat(sprintf("\nTotal worked : %.2f h (%s)\n", total, hm(total)))
cat(sprintf("Regular      : %.2f h\n", regular))
cat(sprintf("Overtime     : %.2f h at %.1fx\n", overtime, ot_mult))
cat(sprintf("Gross pay    : $%s\n", formatC(pay, format = "f", digits = 2, big.mark = ",")))
if (overtime > 0) {
  cat("Verdict: you worked", hm(overtime), "of overtime this week.\n")
} else {
  cat("Verdict: no overtime this week.\n")
}

# 4. One figure, saved at 300 dpi
left <- ot_after; reg_day <- numeric(nrow(week))
for (i in seq_len(nrow(week))) {
  reg_day[i] <- min(week$hours[i], max(left, 0)); left <- left - reg_day[i]
}
ot_day <- week$hours - reg_day
png("time_card_week.png", width = 7, height = 4, units = "in", res = 300)
barplot(rbind(reg_day, ot_day), names.arg = week$day, col = c("#16a34a", "#f59e0b"),
        ylab = "Hours worked", border = NA,
        main = sprintf("Week total %.2f h, overtime %.2f h", total, overtime))
legend("topright", fill = c("#16a34a", "#f59e0b"), legend = c("Regular", "Overtime"), bty = "n")
dev.off()

9.2 What each part does

LineWhat it does
data.frame(...)The only block you change: days, punches and break minutes
to_minutes()Turns "17:20" into 1040 minutes after midnight
%% 1440Wraps a negative gap into the next day, so 22:00 to 06:30 is 510 minutes
max(0, total - ot_after)Overtime above the 40 hour threshold
png(..., res = 300)Saves the chart at print quality

Output: Total worked : 46.50 h (46 h 30 min), Overtime : 6.50 h at 1.5x, Gross pay : $995.00, exactly the calculator result.

9.3 What the figure shows

A stacked bar for each day: green for regular hours and amber for overtime. Overtime starts during Friday, when the running total passes 40 hours, and all of Saturday is overtime.

9.4 Problems and fixes

  • NA in hours: a punch was blank. The !is.na() line drops those days.
  • Negative hours: you replaced %% with a plain minus. Put the modulo back.
  • Times with seconds: use as.difftime(c("08:45:30"), format = "%H:%M:%S", units = "mins").

9.5 Useful one-liners

difftime(as.POSIXct("2026-11-20 17:30"), as.POSIXct("2026-11-02 09:00"), units = "hours")  # 440.5
7 + 45 / 60                                    # 7.75 decimal hours
format(as.POSIXct("2026-11-18 09:00", tz = "America/New_York"), tz = "Asia/Kolkata")  # 19:30

📈 10. How Do You Calculate Time in Python?

pandas makes a time sheet easy to read, and the modulo operator handles overnight shifts. The script prints the same answer as Excel, R and this calculator: 46.50 hours, 6.50 overtime hours and $995.00 gross pay.

pandasthe time sheet table
matplotlibthe 300 dpi figure

Install once with pip install pandas matplotlib.

10.1 The complete script

# ============================================================
# Time Calculator: weekly time card with lunch and overtime
# StatsUnlock.com  |  same numbers as the online calculator
# ============================================================
import pandas as pd
import matplotlib
matplotlib.use("Agg")               # draw without opening a window
import matplotlib.pyplot as plt

# 1. Your week. Change only this block (24-hour clock, break in minutes).
week = pd.DataFrame({
    "day":       ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
    "clock_in":  ["08:45", "09:00", "08:30", "08:50", "22:00", "07:00"],
    "clock_out": ["17:20", "17:30", "18:15", "17:05", "06:30", "12:40"],
    "break_min": [30, 30, 45, 30, 30, 0],
})
# week = pd.read_csv("timesheet.csv")    # or load the same columns from a file
week = week.dropna(subset=["clock_in", "clock_out"])   # skip days with a missing punch

RATE = 20.00          # pay per hour
OT_AFTER = 40         # weekly overtime threshold in hours (US FLSA)
OT_MULT = 1.5         # time and a half

def to_minutes(hhmm):
    """'17:20' -> 1040 minutes after midnight."""
    h, m = hhmm.split(":")
    return int(h) * 60 + int(m)

# 2. Minutes worked each day. % 1440 handles shifts that cross midnight.
span = (week["clock_out"].map(to_minutes) - week["clock_in"].map(to_minutes)) % 1440
week["worked_min"] = span - week["break_min"]
week["hours"] = week["worked_min"] / 60

# 3. Weekly totals, overtime and pay
total = week["hours"].sum()
overtime = max(0.0, total - OT_AFTER)
regular = total - overtime
pay = regular * RATE + overtime * RATE * OT_MULT

def hm(hours):
    mins = round(hours * 60)
    return f"{mins // 60} h {mins % 60:02d} min"

print(week[["day", "clock_in", "clock_out", "break_min", "hours"]].round(2).to_string(index=False))
print(f"\nTotal worked : {total:.2f} h ({hm(total)})")
print(f"Regular      : {regular:.2f} h")
print(f"Overtime     : {overtime:.2f} h at {OT_MULT}x")
print(f"Gross pay    : ${pay:,.2f}")
if overtime > 0:
    print(f"Verdict: you worked {hm(overtime)} of overtime this week.")
else:
    print("Verdict: no overtime this week.")

# 4. One figure, saved at 300 dpi
reg_day, left = [], OT_AFTER
for h in week["hours"]:
    r = min(h, max(left, 0)); reg_day.append(r); left -= r
ot_day = week["hours"] - pd.Series(reg_day, index=week.index)
fig, ax = plt.subplots(figsize=(7, 4))
ax.bar(week["day"], reg_day, color="#16a34a", label="Regular hours")
ax.bar(week["day"], ot_day, bottom=reg_day, color="#f59e0b", label="Overtime hours")
ax.set_ylabel("Hours worked")
ax.set_title(f"Week total {total:.2f} h, overtime {overtime:.2f} h")
ax.legend()
fig.tight_layout()
fig.savefig("time_card_week.png", dpi=300)

10.2 What each part does

LineWhat it does
pd.DataFrame(...)The only block you change
to_minutes()"17:20" becomes 1040
% 1440Python modulo is always positive, so overnight shifts work
max(0.0, total - OT_AFTER)Overtime hours
savefig(..., dpi=300)One print-quality figure

10.3 What the figure shows

The same stacked bars as the R version, with the title "Week total 46.50 h, overtime 6.50 h".

10.4 Problems and fixes

  • ValueError on split: a cell is blank or not in hh:mm form. Clean the column or use dropna.
  • Time zones: use the standard library zoneinfo.ZoneInfo("Asia/Kolkata"), never a fixed offset.
  • Daylight saving in durations: subtract time-zone-aware datetimes to get real elapsed time.

10.5 Useful one-liners

from datetime import datetime
(datetime(2026, 11, 20, 17, 30) - datetime(2026, 11, 2, 9, 0)).total_seconds() / 3600   # 440.5
7 + 45 / 60                                                                          # 7.75
350 / 90 * 60                                                                        # 233.33 minutes

📋 11. Time Calculator Charts and Reference Tables

Table 1. Minutes to decimal hours chart

MinDecimal hMinDecimal hMinDecimal h
10.0167210.3500410.6833
20.0333220.3667420.7000
30.0500230.3833430.7167
40.0667240.4000440.7333
50.0833250.4167450.7500
60.1000260.4333460.7667
70.1167270.4500470.7833
80.1333280.4667480.8000
90.1500290.4833490.8167
100.1667300.5000500.8333
110.1833310.5167510.8500
120.2000320.5333520.8667
130.2167330.5500530.8833
140.2333340.5667540.9000
150.2500350.5833550.9167
160.2667360.6000560.9333
170.2833370.6167570.9500
180.3000380.6333580.9667
190.3167390.6500590.9833
200.3333400.6667601.0000

What to conclude: divide minutes by 60, exactly as the time calculator does. Payroll systems that round to tenths use 6 minute steps: 6 = 0.1, 12 = 0.2, 30 = 0.5.

Table 2. 24-hour (military) time to 12-hour time

24-hour12-hour24-hour12-hour
00:0012:00 AM12:0012:00 PM
01:001:00 AM13:001:00 PM
02:002:00 AM14:002:00 PM
03:003:00 AM15:003:00 PM
04:004:00 AM16:004:00 PM
05:005:00 AM17:005:00 PM
06:006:00 AM18:006:00 PM
07:007:00 AM19:007:00 PM
08:008:00 AM20:008:00 PM
09:009:00 AM21:009:00 PM
10:0010:00 AM22:0010:00 PM
11:0011:00 AM23:0011:00 PM

What to conclude: for PM times from 1 PM onward, add 12 to the hour. 12:00 AM is midnight (00:00) and 12:00 PM is noon.

Table 3. Time unit conversions

UnitSecondsMinutesHours
1 minute6010.0167
1 hour3,600601
1 day86,4001,44024
1 week604,80010,080168
1 year (365 days)31,536,000525,6008,760
1 leap year31,622,400527,0408,784

What to conclude: to convert time into minutes multiply hours by 60; to convert minutes to hours divide by 60.

Table 4. Weekly hours to monthly and yearly hours

Hours per weekPer month (× 52 ÷ 12)Per year (× 52)
2086.71,040
25108.31,300
30130.01,560
35151.71,820
37.5162.51,950
40173.32,080
45195.02,340
50216.72,600

What to conclude: a 40 hour week is 2,080 hours a year before holidays and time off, the number used to turn an hourly rate into a yearly salary.

Table 5. Time and a half and double time pay

Regular rateTime and a half (1.5×)Double time (2×)10 overtime hours at 1.5×
$7.25$10.88$14.50$108.75
$10.00$15.00$20.00$150.00
$12.00$18.00$24.00$180.00
$15.00$22.50$30.00$225.00
$18.00$27.00$36.00$270.00
$20.00$30.00$40.00$300.00
$25.00$37.50$50.00$375.00
$30.00$45.00$60.00$450.00

What to conclude: to calculate time and a half, multiply the hourly rate by 1.5. Source for the 40 hour, 1.5× rule: US Department of Labor, Fair Labor Standards Act, 29 U.S.C. 207, as of 2026. State laws and contracts can be more generous; confirm current rules before payroll.

Table 6. Drive time at common speeds

Average speed100 km250 km100 miles300 miles
50 km/h (31 mph)2 h 00 min5 h 00 min3 h 13 min9 h 39 min
60 km/h (37 mph)1 h 40 min4 h 10 min2 h 41 min8 h 03 min
80 km/h (50 mph)1 h 15 min3 h 08 min2 h 01 min6 h 02 min
90 km/h (56 mph)1 h 07 min2 h 47 min1 h 47 min5 h 22 min
100 km/h (62 mph)1 h 00 min2 h 30 min1 h 37 min4 h 50 min
110 km/h (68 mph)0 h 55 min2 h 16 min1 h 28 min4 h 23 min
120 km/h (75 mph)0 h 50 min2 h 05 min1 h 20 min4 h 01 min

What to conclude: this is moving time only. Add stops, traffic and rest breaks for a realistic driving time.

Table 7. Common time zone offsets

PlaceStandard timeDaylight saving time
New YorkUTC−5 (EST)UTC−4 (EDT), March to November
ChicagoUTC−6 (CST)UTC−5 (CDT)
Los AngelesUTC−8 (PST)UTC−7 (PDT)
LondonUTC+0 (GMT)UTC+1 (BST), March to October
Paris, BerlinUTC+1 (CET)UTC+2 (CEST)
DubaiUTC+4None
IndiaUTC+5:30 (IST)None
SingaporeUTC+8None
TokyoUTC+9None
SydneyUTC+10 (AEST)UTC+11 (AEDT), October to April

What to conclude: the gap between two cities can change during the year. Source: IANA time zone database, as of 2026. The time calculator reads the live rules from your browser.

Table 8. Reading time and speech time by word count

WordsSilent reading (238 wpm)Reading aloud (183 wpm)
2501 min 03 s1 min 22 s
5002 min 06 s2 min 44 s
7503 min 09 s4 min 06 s
1,0004 min 12 s5 min 28 s
1,5006 min 18 s8 min 12 s
2,0008 min 24 s10 min 56 s
3,00012 min 36 s16 min 24 s

What to conclude: a reading time calculator divides words by reading speed. Average rates for adults reading English non-fiction come from the Brysbaert (2019) meta-analysis in Section 22. A speech time estimate uses the reading aloud rate.

Table 9. How many hours is a shift? Common work schedules

ShiftUnpaid breakHours workedDecimal hoursTry it
9:00 AM to 5:00 PM0 min8 h 00 min8.00Open in calculator
9:00 AM to 5:00 PM30 min7 h 30 min7.50Open in calculator
8:00 AM to 5:00 PM60 min8 h 00 min8.00Open in calculator
8:00 AM to 4:30 PM30 min8 h 00 min8.00Open in calculator
7:00 AM to 3:30 PM30 min8 h 00 min8.00Open in calculator
7:00 AM to 7:00 PM30 min11 h 30 min11.50Open in calculator
7:00 PM to 7:00 AM30 min11 h 30 min11.50Open in calculator
10:00 PM to 6:00 AM30 min7 h 30 min7.50Open in calculator
6:00 AM to 2:30 PM30 min8 h 00 min8.00Open in calculator
12:00 PM to 8:30 PM30 min8 h 00 min8.00Open in calculator

What to conclude: a 9 to 5 day is 8 hours on the clock but 7.5 paid hours with a 30 minute lunch. Each "Open in calculator" link loads that shift into the time calculator above, so you can change one number and see your own answer.

📈 12. Example Results

Eight worked examples, from a textbook day to an impossible input. Load any of them from the sample dropdown to check the numbers yourself.

1
TEXTBOOK CASE

A 9 to 5 day with a 30 minute lunch

The classic hours worked calculation.

You start at 9:00 AM, finish at 5:00 PM and take an unpaid 30 minute lunch.

Start 9:00 AMEnd 5:00 PMBreak 30 min7 h 30 min7.50 h
ItemValueNote
Clock span8 h 00 min5:00 PM minus 9:00 AM
Break30 minUnpaid
Net time7 h 30 min480 minus 30 = 450 min
Decimal hours7.50450 divided by 60
9:00 AM to 5:00 PM with a 30 minute lunchWorkWork00:0003:0006:0009:0012:0015:0018:0021:0024:00Net 7 h 30 min = 7.50 hours
The green blocks are paid time and the amber gap is lunch.

What it means: A 9 to 5 day is 8 hours on the clock, but only 7.5 paid hours when lunch is unpaid.

How to use it: Enter 7.50 on a decimal time sheet, or 7:30 on an h:mm sheet.

2
CLEARLY HIGH

A 46.5 hour week with overtime

When the time card passes 40 hours.

The sample week: six days including a Friday night shift, at $20 per hour.

Total 46.50 hRegular 40.00 hOvertime 6.50 hRate $20Pay $995.00
ItemValueNote
Total hours46.508.08 + 8 + 9 + 7.75 + 8 + 5.67
Regular40.00 hUp to the threshold
Overtime6.50 h46.50 minus 40
Gross pay$995.00800 + 6.5 x 30
Daily hours, week total 46.5 h8.08hMon8hTue9hWed7.75hThu8hFri5.67hSat
Overtime starts on Friday once the running total passes 40 hours.

What it means: You earned 6.5 hours at time and a half, which adds $195 on top of $800 regular pay.

How to use it: Check that your pay stub lists 6.50 overtime hours at $30.

3
CLEARLY LOW

A short morning shift

Small numbers still need the right conversion.

A part-time shift from 10:15 AM to 1:05 PM with no break.

10:15 AM1:05 PMNo break2 h 50 min2.83 h
ItemValueNote
Clock span2 h 50 min13:05 minus 10:15
Minutes1702 x 60 + 50
Decimal hours2.83170 divided by 60
10:15 AM to 1:05 PM2 h 50 min00:0003:0006:0009:0012:0015:0018:0021:0024:002.83 decimal hours
A short block on the 24 hour line.

What it means: Under 4 hours is a short shift, so many employers do not schedule a meal break.

How to use it: Write 2.83 hours, not 2.50 or 2.85.

4
BORDERLINE

Exactly 40 hours

Right on the overtime line.

Five days from 9:00 AM to 5:30 PM with a 30 minute lunch each day.

8.00 h x 5Total 40.00 hOvertime 0Full time
ItemValueNote
Each day8.00 h8.5 h span minus 0.5 h lunch
Week40.00 h5 x 8
Overtime0.00 hNot more than 40
Five 8 hour days = 40 h8hMon8hTue8hWed8hThu8hFri
Every bar is 8 hours, totalling exactly 40.

What it means: Overtime is hours over 40, so exactly 40 earns none. One extra minute would earn overtime.

How to use it: If you stay late one day, re-run the time card to see the overtime.

5
EXTREME INPUT

A night shift across midnight

Where simple subtraction breaks.

You clock in at 10:00 PM and clock out at 6:30 AM the next morning, with a 30 minute unpaid break.

10:00 PM6:30 AM+24 h8 h 00 min8.00 h
ItemValueNote
End minus start-15 h 30 minWrong if left as is
Add 24 h8 h 30 minCrosses midnight
Minus break8 h 00 minThe correct answer
10:00 PM to 6:30 AMAfter midnight00:0003:0006:0009:0012:0015:0018:0021:0024:008 h 30 min span, 8 h 00 min after the break
The shift is split into two pieces, before and after midnight.

What it means: The calculator detects the crossing and adds one day. A plain spreadsheet subtraction shows ##### instead.

How to use it: In Excel use MOD(end minus start, 1).

6
MISLEADING READING

7:45 is not 7.45 hours

The payroll mistake that costs real money.

Your time card says you worked 7:45. Someone types 7.45 into the payroll system.

7:45Correct 7.75 hWrong 7.45 hLost 18 min
ItemValueNote
Correct decimal7.75 h7 + 45 / 60
Wrong entry7.45 hReads minutes as hundredths
Difference0.30 h18 minutes of pay lost
7:45 as decimal hours7.75hCorrect7.45hWrong
The orange bar is short by 0.30 hours.

What it means: 0.30 hours is 18 minutes. Five such days is 1.5 hours of unpaid work each week.

How to use it: Always convert with the Time to Decimal mode before typing hours into payroll.

7
INVALID INPUT

A break longer than the shift

What the calculator does with impossible numbers.

Start 12:00, end 12:20, but the break box says 30 minutes.

Span 20 minBreak 30 minNo resultFix the input
ItemValueNote
Clock span20 min12:20 minus 12:00
Break30 minLonger than the span
ResultNot shownA clear message instead of a negative time
Start 12:00, End 12:20, Break 30 minBreak minutes: 30The break is longer than the time between start and end.
The tool stops and names the problem.

What it means: A negative duration is never real. The calculator refuses to show it and tells you which box to fix.

How to use it: Check whether the break was really 30 minutes, or whether the end time is wrong.

8
APPLIED

Road trip drive time

Speed distance time in real life.

You plan to drive 350 km at an average of 90 km/h.

350 km90 km/h3.8889 h3 h 53 min 20 s
ItemValueNote
Time3 h 53 min 20 s350 divided by 90
Decimal3.8889 h
Pace0:40 per km60 / 90 min per km
350 km at 90 km/h: arrive after 3 h 53 min 20 s350 km0:001:002:003:003:53km
Distance grows in a straight line at a steady speed.

What it means: Moving time is just under 4 hours. With a fuel stop and a rest, plan for about 4.5 hours.

How to use it: Use Speed Distance Time mode, then add your stop time with Add / Subtract mode.

🧪 13. How Do You Get Accurate Results from a Time Calculator?

  1. Use the times on your record, not the times you remember. Phone time clock apps and badge systems store exact punches.
  2. Always include AM or PM, or use the 24-hour clock. 5:20 is ambiguous; 5:20 PM and 17:20 are not.
  3. Enter only unpaid breaks. Short paid rest breaks stay in your hours.
  4. Count break minutes, not a clock time. A lunch from 12:10 to 12:45 is 35 minutes.
  5. Leave days you did not work blank in the time card, rather than typing 0:00.
  6. Check your overtime rule. The US default is weekly over 40. Some states and contracts add daily rules.
  7. Match the rounding to your employer only if you are reconciling their report.
  8. For date durations, check both dates in the date picker; month and day order differs between countries.
  9. For speed distance time, use average speed, including slow sections, not the speed limit.
  10. For time zones, pick the city, not a three-letter code. EST and IST each mean more than one zone.
InputUnitTypical rangeExample
Start and end timeClock time00:00 to 23:598:45 AM
BreakMinutes0 to 6030
Hourly rateDollars per hour7.25 to 10020
Weekly thresholdHours35 to 4840
Overtime multiplierTimes regular rate1.5 to 21.5
Distancekm or miles1 to 5,000350 km
Speedkm/h or mph5 to 90090 km/h
Common mistakes: typing 5:20 without PM, entering a paid break, typing 7.45 for 7:45, forgetting a night shift crosses midnight, and using EST in summer when New York is on EDT.

🎯 14. When Should You Use This Time Calculator?

Use it when you need to:
  • Check hours worked on a pay stub
  • Fill a weekly time sheet with lunch and overtime
  • Add lap, study or task times
  • Turn h:mm into decimal hours for payroll
  • Find drive or flight time from speed and distance
  • Book a meeting across time zones
Do not use it for:
  • Legal payroll records for many staff (use a time clock system)
  • Tax or benefit calculations
  • Counting days to a date (use the Date Calculator)
  • Exempt salaried overtime decisions
  • Exact flight arrival, which needs airline schedules

Four examples

  • A nurse on a 7:00 PM to 7:30 AM shift checks it is 12 hours after a 30 minute break.
  • A freelancer adds 1:15, 0:40 and 2:05 of client work to bill 4.00 hours.
  • A swimmer adds four 100 m splits to get a total time and an average per lap.
  • A manager in Chicago finds that 3:00 PM is 2:30 AM the next day in India.

Decision guide

If you needUse
A date N days from todayDate Calculator
Hours between two clock timesTime Duration mode
A full week with payTime Card mode
The average of many timesAdd / Subtract mode
A range for an average from a sampleConfidence Interval Calculator

🔧 15. Troubleshooting and Common Errors

I get a negative number of hours

Cause: The shift crosses midnight and your other tool subtracts directly.

Fix: Use this calculator, which adds 24 hours when the end is earlier, or use MOD in Excel.

Another website gives a different answer

Cause: Different rounding or rules. Some round each day before adding, some round punches to 15 minutes, some ignore daylight saving.

Fix: This tool keeps full precision and rounds only for display. Match the rounding option to the other system to compare.

My total looks 12 hours off

Cause: AM and PM were mixed up, for example 5:20 typed instead of 5:20 PM.

Fix: Add AM or PM, or switch the Clock display to 24-hour and type 17:20.

The time card total is short by about 18 minutes a day

Cause: Minutes were read as hundredths (7:45 written as 7.45).

Fix: Use the decimal hours from the results, or the Time to Decimal mode.

Error: could not read an entry

Cause: An entry uses a format the parser does not know, such as 1;30.

Fix: Write 1:30, 1h 30m or 90m, and separate entries with commas.

The time zone answer is one hour off from what I expected

Cause: Daylight saving starts or ends on a different date in the two places.

Fix: The calculator uses the rules for the date you picked. Check the date field.

The date duration includes an extra hour

Cause: A daylight saving change happened between the two dates.

Fix: This is correct real elapsed time. The results table shows the clock change line.

Overtime is zero but I worked more than 8 hours in a day

Cause: Only weekly overtime is turned on by default.

Fix: Set Daily overtime after to 8 if your state or contract uses daily overtime.

Download TXT is greyed out

Cause: The inputs in the current mode have an error, so no result is shown.

Fix: Fix the box with the orange message, then press Calculate Time.

Charts do not appear

Cause: The chart library could not load, often because of a blocker or no connection.

Fix: All numbers are still correct. Reload the page or allow cdnjs.cloudflare.com.

This tool uses exact arithmetic in seconds, MOD-style midnight wrapping, weekly overtime first unless you set a daily rule, and live IANA time zone rules from your browser.

⚖ 16. What Are the Limits of This Time Calculator?

  1. A shift is shorter than 24 hours in Time Duration and Time Card modes. If it is longer, the answer is too short by 24 hours. Use Date and Time mode for longer periods.
  2. Breaks are unpaid. If you enter a paid break, hours come out too low.
  3. Overtime follows one weekly threshold plus an optional daily one. Rules like California double time after 12 hours or seventh-day rules are not modelled, so pay may be too low. Check your state labor office.
  4. Pay is gross. Tax, benefits and shift differentials are not included.
  5. Date and Time mode uses your device time zone. If both moments are in another zone with different daylight saving dates, the answer may be off by one hour.
  6. Weekdays ignore public holidays. The count may be too high by the number of holidays.
  7. Speed is constant. Real trips take longer because of stops and traffic. People also tend to underestimate how long tasks take, a bias called the planning fallacy (Buehler et al., 1994), so add a buffer to any plan you build from a time calculator.
  8. Time zone rules come from your browser. An outdated browser may miss a recent law change. Update your browser for the latest rules.

🏁 17. Conclusion

Run the calculator above. Your conclusion will appear here: your ___ result is ___.

A good time calculator saves you from the base-60 traps that make hand sums go wrong. Convert to seconds, do the arithmetic, convert back, and always say whether a number is h:mm or decimal hours. That is all a reliable time calculator does, and it is why its answers can be trusted.

❓ 18. Frequently Asked Questions

Q1. How do you calculate time between two times?

Subtract the start time from the end time. If the end is earlier on the clock, add 24 hours because the period crossed midnight. Then subtract any unpaid break. For example, 8:45 AM to 5:20 PM is 8 hours 35 minutes, and with a 30 minute lunch it is 8 hours 5 minutes. The time calculator above does all three steps for you.

Q2. How do I calculate hours worked with a lunch break?

Find the time from clock in to clock out, then take away the unpaid lunch in minutes. A 9:00 AM to 5:30 PM shift is 8 hours 30 minutes on the clock. Remove a 30 minute lunch and you worked 8 hours, or 8.00 decimal hours. The Time Card mode does this for every day of the week at once.

Q3. How do you convert minutes to decimal hours?

Divide the minutes by 60. So 15 minutes is 0.25 hours, 30 minutes is 0.5, 45 minutes is 0.75 and 20 minutes is about 0.33. Add the result to the whole hours. Table 1 in the Reference Tables section lists every minute from 1 to 60.

Q4. What is 7 hours 45 minutes in decimal?

7 hours 45 minutes is 7.75 decimal hours, because 45 divided by 60 is 0.75. It is not 7.45. Writing 7.45 would under-count by 18 minutes, which is a common payroll mistake. The Time to Decimal mode of this time calculator converts any value.

Q5. How do I calculate time and a half?

Multiply the regular hourly rate by 1.5. At $20 an hour, time and a half is $30 an hour. Then multiply by the overtime hours. For 6.5 overtime hours that is 6.5 times $30, or $195, added to regular pay.

Q6. How do you calculate overtime hours?

Add all hours worked in the workweek, then subtract the overtime threshold. Under the US Fair Labor Standards Act the threshold is 40 hours for non-exempt employees. If you worked 46.5 hours, overtime is 6.5 hours. Some states, such as California, also count daily overtime over 8 hours.

Q7. How do I calculate time that goes past midnight?

Add 24 hours to the end time before you subtract. A shift from 10:00 PM to 6:30 AM becomes 30:30 minus 22:00, which is 8 hours 30 minutes. This time calculator adds the day for you whenever the end time is earlier than the start.

Q8. How do you add hours and minutes together?

Add the hours and the minutes separately, then carry every 60 minutes into one hour. For example 1:45 plus 2:30 is 3 hours 75 minutes, which becomes 4 hours 15 minutes. The Add / Subtract mode does the carrying for any number of entries.

Q9. How do you subtract time?

Turn both times into minutes, subtract, and turn the answer back into hours and minutes. For 5:10 minus 2:45, that is 310 minus 165, or 145 minutes, which is 2 hours 25 minutes. In this time calculator, type a minus sign before a time to subtract it.

Q10. How do I calculate the time difference between two dates?

Use the Date and Time mode. Enter both dates and times, and the calculator gives days, hours and minutes, total hours, weeks and the number of weekdays. For example, 2 November 9:00 AM to 20 November 5:30 PM is 18 days 8 hours 30 minutes, or 440.5 hours.

Q11. How does a time zone calculator work?

It converts the source time to Coordinated Universal Time (UTC) using that city offset on that date, then applies the destination offset. Because daylight saving dates differ between countries, the offset is looked up for the exact date. 9:00 AM in New York on 18 November 2026 is 7:30 PM in India.

Q12. How do you calculate time from speed and distance?

Divide the distance by the speed. 350 km at 90 km/h is 350 divided by 90, which is 3.8889 hours. Multiply the decimal part by 60 to get minutes: 0.8889 times 60 is 53.33, so the trip takes 3 hours 53 minutes 20 seconds.

Q13. How do you calculate average time?

Add all the times in seconds or minutes, divide by how many there are, then convert back to hours and minutes. Four study sessions of 1:45, 2:30, 0:50 and 1:15 total 6 hours 20 minutes, so the average is 1 hour 35 minutes. The Add / Subtract mode of the time calculator shows the average automatically.

Q14. What is the 7 minute rule for time clocks?

It is rounding to the nearest quarter hour. Punches 1 to 7 minutes past the quarter round down, and 8 to 14 minutes round up. US rules allow it only if, over time, it does not cut workers pay. Choose Nearest 15 minutes in the Time Card mode to apply it.

Q15. Is this time card calculator free?

Yes. This free time calculator, time card calculator and time clock calculator has no sign-up, no limits and no download. It runs in your browser, so your times are not sent anywhere. You can download the result as a TXT file or print a PDF.

Q16. Why does another time calculator give a different answer?

Usually because of rounding or a different rule. Some tools round each day to two decimals before adding, some round punches to 15 minutes, and some ignore overnight shifts or daylight saving. This tool keeps full precision, rounds only for display, and tells you which rule it used.

Q17. How do you calculate time in Excel?

Subtract the times and multiply by 24 to get hours: =(C2-B2)*24. For shifts past midnight use =MOD(C2-B2,1)*24, and subtract breaks with -D2/60. Format totals as [h]:mm so they do not reset after 24 hours. Section 8 shows every step with screenshots.

Q18. How do I calculate time differences in R?

Use difftime() on two date-times, for example difftime(end, start, units = "hours"). For clock times on a time card, convert hh:mm to minutes and use %% 1440 so overnight shifts stay positive. Section 9 gives a complete script that prints 46.50 hours and $995.00 for the sample week.

Q19. How do I calculate time in Python?

Subtract two datetime objects and call total_seconds(), then divide by 3600 for hours. For a time card table, pandas and the % 1440 trick handle overnight shifts. Section 10 has a full script that matches this calculator to the cent.

Q20. How many work hours are in a year?

A full-time 40 hour week gives 2,080 hours a year, which is 40 times 52 weeks. After about 10 public holidays and 2 weeks of paid leave, actual hours worked are closer to 1,920 to 2,000. Table 4 lists other weekly hours.

📑 19. Cite This Tool

APA 7th edition
Reegan. (2026). Time calculator [Online calculator]. StatsUnlock. https://statsunlock.com/time-calculator/
BibTeX
@misc{statsunlock_time_2026, title={Time Calculator}, author={Reegan}, year={2026}, publisher={StatsUnlock}, note={Online calculator}, url={https://statsunlock.com/time-calculator/}}
How to reference it in a document
Hours were calculated with the StatsUnlock Time Calculator (2026), which subtracts clock times in seconds, adds 24 hours to periods that cross midnight, removes unpaid breaks, and applies a 40 hour weekly overtime threshold at 1.5 times the regular rate.

📖 21. Glossary of Terms

TermMeaning
Break (unpaid)Time during a shift that is not paid, such as a 30 minute lunch where you are free from work.
Clock in, clock outThe times you start and stop work, also called punches.
Daily overtimeOvertime earned for hours above a daily limit, such as 8 hours, in some states.
Daylight saving timeMoving clocks forward one hour in summer and back in autumn. It changes the gap between time zones.
Decimal hoursHours written as a single number, where minutes are divided by 60. 7:45 is 7.75.
Double timeOvertime paid at two times the regular rate.
DurationA length of time, such as 8 hours 5 minutes, rather than a time on the clock.
Elapsed timeThe real time that passed between two moments.
Exempt employeeA salaried worker who is not covered by overtime rules under the FLSA.
FLSAThe Fair Labor Standards Act, the US federal law that sets the 40 hour overtime rule.
Gross payPay before tax and other deductions.
h:mmA way of writing a duration as hours, a colon, and two-digit minutes, such as 8:05.
IANA time zoneA named zone such as America/New_York from the standard database used by computers.
Military timeThe 24-hour clock, where 1:00 PM is 13:00.
OvertimeHours worked above a threshold, often paid at a higher rate.
PaceTime taken per unit distance, such as minutes per km.
Rounding (time clock)Moving punch times to the nearest 5, 6 or 15 minutes.
ThresholdThe number of hours after which overtime starts, 40 per week under the FLSA.
Time and a halfOvertime paid at 1.5 times the regular hourly rate.
Time cardA record of the hours a person worked each day, also called a time sheet.
UTCCoordinated Universal Time, the reference clock all time zones are measured from.
WeekdayMonday to Friday. Weekends are Saturday and Sunday.

📚 22. References

Peer-reviewed research behind the working-hours, shift-work, time perception, reading-rate and planning guidance on this time calculator page. Legal overtime and time zone sources are listed with Tables 5 and 7.

  1. Akerstedt, T. (2003). Shift work and disturbed sleep/wakefulness. Occupational Medicine, 53(2), 89–94. https://doi.org/10.1093/occmed/kqg046
  2. Brysbaert, M. (2019). How many words do we read per minute? A review and meta-analysis of reading rate. Journal of Memory and Language, 109, 104047. https://doi.org/10.1016/j.jml.2019.104047
  3. Buehler, R., Griffin, D., & Ross, M. (1994). Exploring the "planning fallacy": Why people underestimate their task completion times. Journal of Personality and Social Psychology, 67(3), 366–381. https://doi.org/10.1037/0022-3514.67.3.366
  4. Caruso, C. C. (2014). Negative impacts of shiftwork and long work hours. Rehabilitation Nursing, 39(1), 16–25. https://doi.org/10.1002/rnj.107
  5. Dembe, A. E., Erickson, J. B., Delbos, R. G., & Banks, S. M. (2005). The impact of overtime and long work hours on occupational injuries and illnesses: New evidence from the United States. Occupational and Environmental Medicine, 62(9), 588–597. https://doi.org/10.1136/oem.2004.016667
  6. Folkard, S., & Tucker, P. (2003). Shift work, safety and productivity. Occupational Medicine, 53(2), 95–101. https://doi.org/10.1093/occmed/kqg047
  7. Grondin, S. (2010). Timing and time perception: A review of recent behavioral and neuroscience findings and theoretical directions. Attention, Perception, & Psychophysics, 72(3), 561–582. https://doi.org/10.3758/APP.72.3.561
  8. Hirshkowitz, M., Whiton, K., Albert, S. M., Alessi, C., Bruni, O., DonCarlos, L., et al. (2015). National Sleep Foundation’s sleep time duration recommendations: Methodology and results summary. Sleep Health, 1(1), 40–43. https://doi.org/10.1016/j.sleh.2014.12.010
  9. Kecklund, G., & Axelsson, J. (2016). Health consequences of shift work and insufficient sleep. BMJ, 355, i5210. https://doi.org/10.1136/bmj.i5210
  10. Kivimäki, M., Jokela, M., Nyberg, S. T., et al. (2015). Long working hours and risk of coronary heart disease and stroke: A systematic review and meta-analysis of published and unpublished data for 603 838 individuals. The Lancet, 386(10005), 1739–1746. https://doi.org/10.1016/S0140-6736(15)60295-1
  11. Little, J. D. C. (1961). A proof for the queuing formula: L = λW. Operations Research, 9(3), 383–387. https://doi.org/10.1287/opre.9.3.383
  12. Pega, F., Náfrádi, B., Momen, N. C., Ujita, Y., Streicher, K. N., Prüss-Üstün, A. M., et al. (2021). Global, regional, and national burdens of ischemic heart disease and stroke attributable to exposure to long working hours for 194 countries, 2000–2016. Environment International, 154, 106595. https://doi.org/10.1016/j.envint.2021.106595
  13. Pencavel, J. (2015). The productivity of working hours. The Economic Journal, 125(589), 2052–2076. https://doi.org/10.1111/ecoj.12166
  14. Roenneberg, T., Wirz-Justice, A., & Merrow, M. (2003). Life between clocks: Daily temporal patterns of human chronotypes. Journal of Biological Rhythms, 18(1), 80–90. https://doi.org/10.1177/0748730402239679
  15. Roenneberg, T., Kumar, C. J., & Merrow, M. (2007). The human circadian clock entrains to sun time. Current Biology, 17(2), R44–R45. https://doi.org/10.1016/j.cub.2006.12.011
  16. Sparks, K., Cooper, C., Fried, Y., & Shirom, A. (1997). The effects of hours of work on health: A meta-analytic review. Journal of Occupational and Organizational Psychology, 70(4), 391–408. https://doi.org/10.1111/j.2044-8325.1997.tb00656.x
  17. Virtanen, M., Heikkilä, K., Jokela, M., Ferrie, J. E., Batty, G. D., Vahtera, J., & Kivimäki, M. (2012). Long working hours and coronary heart disease: A systematic review and meta-analysis. American Journal of Epidemiology, 176(7), 586–596. https://doi.org/10.1093/aje/kws139
  18. Waterhouse, J., Reilly, T., Atkinson, G., & Edwards, B. (2007). Jet lag: Trends and coping strategies. The Lancet, 369(9567), 1117–1129. https://doi.org/10.1016/S0140-6736(07)60529-7
  19. Wittmann, M. (2013). The inner sense of time: How the brain creates a representation of duration. Nature Reviews Neuroscience, 14(3), 217–223. https://doi.org/10.1038/nrn3452
  20. Wong, K., Chan, A. H. S., & Ngan, S. C. (2019). The effect of long working hours and overtime on occupational health: A meta-analysis of evidence from 1998 to 2018. International Journal of Environmental Research and Public Health, 16(12), 2102. https://doi.org/10.3390/ijerph16122102
STATS UNLOCK · statsunlock.com · Time Calculator

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Statistical Models

Important Plots & Charts

Calculators and Converters