FLXCode Hours Calculator

FLXCode apps

Appearance

Hours Calculator

Fill in start, end and break for each day of the week. The total comes out as hours and minutes and as decimal hours, ready for a timesheet.

Clock
Mon 8:00 h = 8.00
Tue 8:00 h = 8.00
Wed 7:45 h = 7.75
Thu 8:00 h = 8.00
Fri 6:45 h = 6.75
Sat
Sun

Break in minutes (30) or h:mm (0:30). An end earlier than the start runs past midnight.

Example Total hours

38:30 h = 38.50
  • Total hours, h:mm38:30
  • Decimal hours (2 decimals)38.50
  • Days worked5
  • Average per day worked7:42 (7.70)
  • Each day is rounded to 2 decimals on its own. The total is rounded from the exact total, so the daily decimals can differ from it by 0.01.

How it was worked out

  1. Mon: 5:30 PM - 9:00 AM = 8:30, minus a 30-minute break = 8:00
  2. Tue: 5:30 PM - 9:00 AM = 8:30, minus a 30-minute break = 8:00
  3. Wed: 5:00 PM - 8:30 AM = 8:30, minus a 45-minute break = 7:45
  4. Thu: 5:30 PM - 9:00 AM = 8:30, minus a 30-minute break = 8:00
  5. Fri: 3:45 PM - 9:00 AM = 6:45
  6. Total: 38:30 = 38.50 decimal hours

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.

Problem or idea? Email us

Quick start

  1. Pick AM / PM or the 24 hour clock.
  2. For each day you worked, type the start, the end and the break in minutes (or h:mm). Leave days off empty.
  3. Each row shows its hours as h:mm and as a decimal. The total is under the table.
  4. Use Copy Monday to Tue to Fri when the weekdays are the same, then change the days that differ.

Worked examples, one day each

StartEndBreakHoursDecimalNote
9:00 AM5:00 PM307:307.50A standard day with a half hour lunch
8:15 AM4:45 PM457:457.75Three quarters of an hour for lunch
7:00 AM3:30 PMnone8:308.50No break taken
10:00 PM6:30 AM308:008.00A night shift past midnight
12:00 PM4:20 PMnone4:204.33A short afternoon, 20 minutes is 0.33 h
06:4515:100:208:058.08A 24 hour clock with a break as h:mm

Minutes as decimal hours

Timesheets and payroll programs usually want 7.75 and not 7:45. The minutes are divided by 60.

MinutesDecimal hours
50.08
100.17
150.25
200.33
250.42
300.50
350.58
400.67
450.75
500.83
550.92

Rule used here: the value is rounded to 2 decimals, half up. 7 hours 52 minutes 30 seconds is 7.875, which shows 7.88. This page works in whole minutes, so you will mostly meet 0.33, 0.67 and 0.83, which are thirds and sixths rounded.

From hours to pay

The week in the tool at the top has a total of 38:30 h, which is 38.50 decimal hours. At $18 an hour that is 38.50 x 18 = $693.00. Multiply the decimal hours, not the h:mm figure: 38:30 x 18 would be wrong.

How a day is worked out

  1. Each time becomes minutes after midnight. 5:30 PM is 17 x 60 + 30 = 1,050.
  2. Hours worked is the end minus the start. If the end is earlier, 24 hours (1,440 minutes) is added first, because the shift crossed midnight.
  3. The break is subtracted. A break longer than the shift is flagged as an error and not counted.
  4. Days are added up as exact minutes. The decimal is made from the total, not from the rounded daily figures.

Numbers this uses

  • 60 minutes in an hour, 24 hours (1,440 minutes) in a day.
  • Decimal hours: 2 decimals, rounded half up (7:50 is 7.83).
  • Same start and end time counts as 0 hours, not 24.
  • A time typed with AM or PM is always read that way. Without them the 24 hour clock reads it as is, and the AM / PM clock guesses: the start as AM, the end as the first reading after the start.
  • Seven rows, Monday to Sunday. Hours and minutes only, with no seconds.
  • Overtime: none is calculated. US federal law counts overtime after 40 hours in a workweek (FLSA), and states and contracts can differ.

Common mistakes

  • Using h:mm as a decimal. 7:30 is 7.5 hours, not 7.30.
  • Forgetting the break, or typing it in hours. The box wants minutes: 30, or 0:30 for the h:mm form.
  • Typing 12:00 for midnight. 12:00 AM is midnight and 12:00 PM is noon.
  • Starting a night shift on one row and ending it on the next. Put the whole shift on the day it started.

Limits

  • One week at a time. For a pay period of two weeks, calculate each week and add the totals, or use the Time Calculator to add them.
  • No pay, overtime, rounding rules or holidays. For the gap between two exact dates and times, use the Time Duration Calculator.

Nothing you type is uploaded. We count events without cookies (details).

FAQ

How do I calculate hours worked with a lunch break?

Take the end time minus the start time, then subtract the break. 9:00 AM to 5:00 PM is 8 hours, and a 30 minute lunch leaves 7 hours 30 minutes. Enter the break in minutes in the last box of the row and the tool does the subtraction.

How do I turn hours and minutes into decimal hours?

Divide the minutes by 60 and add them to the hours. 7 hours 45 minutes is 7 + 45/60 = 7.75. The table on this page lists every 5 minutes. The tool rounds to 2 decimals, half up, so 7 hours 50 minutes shows 7.83.

How do I calculate hours when the shift goes past midnight?

Type the real start and end, for example 10:00 PM and 6:30 AM. When the end is earlier than the start, the tool counts the shift to the next day and adds 24 hours, so this one is 8 hours 30 minutes.

What if I type a time without AM or PM?

On the AM / PM clock, a start such as 9 is read as 9:00 AM and an end such as 5 is read as 5:00 PM, because that is the first reading later than the start. A note under the result says what it assumed. On the 24 hour clock, 17:00 is 5:00 PM and you need no letters.

Why does my weekly total differ by 0.01 from the sum of the days?

Each day is rounded to 2 decimals on its own, but the total is rounded from the exact total. Five days of 7 hours 50 minutes are 39 hours 10 minutes, which is 39.17. Each day alone is 7.83, and 5 times 7.83 is 39.15. Use the total in h:mm to check.

Does it round to the nearest quarter hour?

No, it counts exact minutes. Some US employers round punches to the nearest 5 minutes, tenth or quarter of an hour, which the Department of Labor accepts when it averages out in the employees' favour over time (29 CFR 785.48). If your employer does that, round your start and end times before you type them.

Does it work out overtime or pay?

No. It gives the hours. In the US, federal overtime starts after 40 hours in a workweek, but many states and contracts differ, so check your own rule. To get pay from the total, multiply the decimal hours by the hourly rate. The example on this page does that.

Are my hours saved or uploaded?

No. The sums run in your browser. Nothing you type is put in the address bar, stored or counted. We only count that a week was calculated and which clock you used.

More from FLXCode

Share Hours Calculator