# How many hours on my time clock?

Adds up the hours on a weekly time card from in and out times, less an unpaid break, with optional rounding, and works out pay with overtime after 40 hours.

- Page: https://www.acalculator.org/days/time-card-calculator
- JSON spec: https://www.acalculator.org/days/time-card-calculator.json
- Version: dec07288fe83

## Default answer

Example with the default inputs (Monday in 08:00, Monday out 17:00, Tuesday in 08:00, Tuesday out 17:00, Wednesday in 08:00, Wednesday out 17:00, Thursday in 08:00, Thursday out 17:00, Friday in 08:00, Friday out 17:00, Unpaid break each day (minutes) 30, Hourly pay $20.00, Round each time to No rounding, Overtime after (hours a week) 40, Overtime pay multiplier 1.5): You worked 42.5 hours this week: 40 regular and 2.5 overtime.

## Inputs

| Key | Label | Description |
| --- | --- | --- |
| monIn | Monday in | The time you started work on Monday. Leave both times empty for a day off. |
| monOut | Monday out | The time you stopped work on Monday. Earlier than the in time means the next day. |
| tueIn | Tuesday in | The time you started work on Tuesday. Leave both times empty for a day off. |
| tueOut | Tuesday out | The time you stopped work on Tuesday. Earlier than the in time means the next day. |
| wedIn | Wednesday in | The time you started work on Wednesday. Leave both times empty for a day off. |
| wedOut | Wednesday out | The time you stopped work on Wednesday. Earlier than the in time means the next day. |
| thuIn | Thursday in | The time you started work on Thursday. Leave both times empty for a day off. |
| thuOut | Thursday out | The time you stopped work on Thursday. Earlier than the in time means the next day. |
| friIn | Friday in | The time you started work on Friday. Leave both times empty for a day off. |
| friOut | Friday out | The time you stopped work on Friday. Earlier than the in time means the next day. |
| satIn | Saturday in | The time you started work on Saturday. Leave both times empty for a day off. |
| satOut | Saturday out | The time you stopped work on Saturday. Earlier than the in time means the next day. |
| sunIn | Sunday in | The time you started work on Sunday. Leave both times empty for a day off. |
| sunOut | Sunday out | The time you stopped work on Sunday. Earlier than the in time means the next day. |
| break | Unpaid break each day (minutes) | Unpaid break time taken off each day you worked, in minutes. |
| rate | Hourly pay | Your regular pay per hour, to work out pay. Leave it empty to skip pay. |
| round | Round each time to | Round each in and out time to the nearest 5, 6, or 15 minutes, or not at all. |
| otAfter | Overtime after (hours a week) | Hours in the week after which overtime pay starts. 40 under federal law. |
| otRate | Overtime pay multiplier | Overtime pay per hour as a multiple of the hourly pay. At least 1.5 under federal law. |

## Outputs

| Key | Label | Description |
| --- | --- | --- |
| total | Total hours | The hours worked in the week, less breaks, in decimal hours. |
| totalTime | Total time | The hours worked in the week, less breaks, in hours and minutes. |
| regular | Regular hours | Hours up to the overtime limit. |
| overtime | Overtime hours | Hours over the overtime limit. |
| regularPay | Regular pay | Regular hours × hourly pay. |
| overtimePay | Overtime pay | Overtime hours × hourly pay × overtime multiplier. |
| pay | Total pay | Regular pay plus overtime pay, before tax. |
| daysWorked | Days worked | Days with both an in and an out time. |
| monHours | Monday | Hours worked on Monday, less the break, in decimal hours. |
| tueHours | Tuesday | Hours worked on Tuesday, less the break, in decimal hours. |
| wedHours | Wednesday | Hours worked on Wednesday, less the break, in decimal hours. |
| thuHours | Thursday | Hours worked on Thursday, less the break, in decimal hours. |
| friHours | Friday | Hours worked on Friday, less the break, in decimal hours. |
| satHours | Saturday | Hours worked on Saturday, less the break, in decimal hours. |
| sunHours | Sunday | Hours worked on Sunday, less the break, in decimal hours. |

## Method

Each day: (out − in, plus 24 hours when out is earlier, after rounding) − break; total = sum of the days; overtime = total − overtime limit when above 0; pay = rate × regular + rate × multiplier × overtime.

## Assumptions

- An out time earlier than the in time is on the next day, so one day is under 24 hours.
- The same unpaid break is taken off each day with both times. A break longer than the day gives no answer; a break as long as the day gives 0 hours.
- Rounding moves each in and out time to the nearest 5, 6, or 15 minutes; a time exactly halfway rounds up (later). Federal rules allow rounding to the nearest 5 minutes, tenth of an hour, or quarter hour when it averages out fairly over time (29 CFR 785.48(b)).
- Overtime is weekly: hours over the limit (40 by default, the federal Fair Labor Standards Act rule) at the multiplier (1.5 by default). Daily overtime rules are not included.
- Pay is before tax. Clock changes for daylight saving time are not counted.

## Worked examples

1. monIn = 08:00, monOut = 17:00, tueIn = 08:00, tueOut = 17:00, wedIn = 08:00, wedOut = 17:00, thuIn = 08:00, thuOut = 17:00, friIn = 08:00, friOut = 17:00, break = 30, rate = $20.00, round = 0, otAfter = 40, otRate = 1.5 gives total = 42.5, totalTime = {"hours":42,"minutes":30}, regular = 40, overtime = 2.5, regularPay = $800.00, overtimePay = $75.00, pay = $875.00, daysWorked = 5, monHours = 8.5. Source: hand calculation in content.mdx: 5 × 8.5 h = 42.5 h; 40 × $20 + 2.5 × $30 = $875 (overtime after 40 hours at 1.5 times the rate, 29 U.S.C. 207(a)(1)).
2. monIn = 07:53, monOut = 16:08, satIn = 22:00, satOut = 02:30, break = 0, round = 15, otAfter = 40, otRate = 1.5 gives monHours = 8.25, satHours = 4.5, total = 12.75, overtime = 0, daysWorked = 2. Source: 29 CFR 785.48(b) (rounding to the nearest quarter of an hour); hand calculation in content.mdx: 7:53 is nearer 8:00, 4:08 is nearer 4:15.
3. monIn = 09:02, monOut = 17:03, break = 0, round = 6, otAfter = 40, otRate = 1.5 gives monHours = 8.1, total = 8.1. Source: hand calculation in content.mdx: 17:06 − 9:00 = 8 h 6 min = 8.1 h.
4. monIn = 08:00, monOut = 20:00, tueIn = 08:00, tueOut = 20:00, wedIn = 08:00, wedOut = 20:00, thuIn = 08:00, thuOut = 20:00, break = 60, rate = $18.00, round = 0, otAfter = 40, otRate = 2 gives total = 44, regular = 40, overtime = 4, pay = $864.00. Source: hand calculation in content.mdx: 40 × $18 + 4 × $36 = $864.

## FAQ

### How do I add up hours on a time card?

For each day, subtract the in time from the out time and take off the unpaid break. Then add the days. Monday to Friday, 8:00 AM to 5:00 PM with a 30-minute lunch, is 8.5 hours a day and 42.5 hours for the week.

### How is overtime worked out?

Under the federal Fair Labor Standards Act, hours over 40 in a workweek are paid at least 1.5 times the regular rate. At $20 an hour, 42.5 hours pay 40 × $20 + 2.5 × $30 = $875. You can change the limit and the multiplier under Rounding and overtime, for example for double time.

### Can my employer round my time?

Federal rules let an employer round clock times to the nearest 5 minutes, tenth of an hour (6 minutes), or quarter hour (15 minutes), as long as it averages out so that employees are paid for all the time they work. Rounding to the nearest quarter hour moves a time 1 to 7 minutes past a quarter back to it and a time 8 to 14 minutes past forward to the next, so 7:53 becomes 8:00 and 4:08 becomes 4:15.

### How do I enter a night shift?

Enter the times as they are. If the out time is earlier than the in time, the shift ends the next day: in at 10:00 PM and out at 2:30 AM is 4.5 hours.

### What does 8.25 hours mean in hours and minutes?

The decimal part is a share of an hour: 0.25 × 60 = 15 minutes, so 8.25 hours is 8 hours 15 minutes. The calculator shows the total both ways.

### Are breaks paid?

Short rest breaks of about 5 to 20 minutes count as work time under federal rules and are paid. A meal break of usually 30 minutes or more, when you are fully off duty, is not work time. Enter only the unpaid break.

## Sources

- U.S. Department of Labor, Fact Sheet #23: Overtime Pay Requirements of the FLSA (hours over 40 in a workweek at not less than one and one-half times the regular rate). https://www.dol.gov/agencies/whd/fact-sheets/23-flsa-overtime-pay
- 29 CFR 785.48(b), rounding practices (nearest 5 minutes, tenth, or quarter of an hour). https://www.ecfr.gov/current/title-29/subtitle-B/chapter-V/subchapter-B/part-785
- 29 CFR 785.18 and 785.19, rest and meal periods. https://www.ecfr.gov/current/title-29/subtitle-B/chapter-V/subchapter-B/part-785
