工作时间计算器 — 每周考勤表 & 加班追踪
本工作时间计算器根据 7 天考勤表计算您的每周总工时。输入每天的上班时间、下班时间和休息时长,获取每日和每周合计、正常工时和加班工时。支持跨午夜班次和可配置的加班阈值(默认按 FLSA 规定 40 小时)。
Weekly Summary
Frequently Asked Questions
工时计算器是如何工作的?
工时计算器根据开始时间、结束时间和休息时间计算每天的实际工作小时数,并汇总一周内所有工作日的总工时,同时计算总工资(基于时薪)和加班费(超出标准工时的部分)。
加班时间是如何计算的?
美国标准:超过每周 40 小时或每天 8 小时(部分州,如加利福尼亚)的工作时间为加班,法定加班费率至少为正常时薪的 1.5 倍。本计算器支持设定每周/每天的标准工时阈值和加班费率(如 1.5x 或 2x)。
如何计算多种薪资类型的混合工资?
如果同时有普通工时和加班工时:正常工时工资 = 时薪 × 标准工时;加班工资 = 时薪 × 加班费率 × 加班工时;总工资 = 正常工资 + 加班工资。本计算器自动分开显示两部分工资,便于验证工资单。
如何记录不规律的工作时间?
本计算器支持为一周内每天分别输入不同的开始时间、结束时间和休息时间,适合排班不固定的工作者。输入所有数据后,计算器会汇总总工时和总工资,并清晰显示每日明细。
How to Calculate Work Hours
How to Calculate Work Hours
To calculate the number of hours worked in a day, subtract the start time from the end time, then subtract any unpaid break time. The formula is:
Hours Worked = (End Time − Start Time) − Break Duration
For example, if you start at 9:00 AM, end at 5:30 PM, and take a 30-minute lunch break:
- End time minus start time: 17:30 − 09:00 = 8 hours 30 minutes
- Subtract break: 8h 30m − 30 minutes = 8 hours 0 minutes
Cross-Midnight Shifts
For night shifts that cross midnight (e.g., 10:00 PM to 6:00 AM), add 24 hours to the end time before subtracting:
22:00 to 06:00 (next day)
= (06:00 + 24:00) − 22:00 = 30:00 − 22:00 = 8 hours
Weekly Total
Sum the daily hours across all worked days to get the weekly total. This calculator handles a standard 7-day week (Monday through Sunday) and lets you toggle individual days on or off.
Overtime Rules (FLSA)
In the United States, the Fair Labor Standards Act (FLSA) requires that non-exempt employees receive overtime pay for hours worked beyond 40 per week. Key rules:
| Rule | Details |
|---|---|
| Overtime threshold | 40 hours per workweek (federal default) |
| Overtime rate | At least 1.5× the regular hourly rate ("time and a half") |
| Double time | Not required federally; some states (e.g., California) mandate it for daily overtime beyond 12h |
| California daily OT | 1.5× after 8h/day, 2× after 12h/day, and on the 7th consecutive day |
| Exempt employees | Salaried workers meeting FLSA salary and duties tests are generally exempt from OT requirements |
State and local laws may set higher overtime thresholds or rates. Always verify with your state labor department or HR for the rules that apply to your situation.
Timesheet Tips
Record times immediately
Log your start and end times at the moment they happen. Reconstructing times from memory at the end of the week introduces errors that accumulate into significant discrepancies.
Separate paid vs. unpaid breaks
Only unpaid breaks should be subtracted from your total hours. Rest breaks under 20 minutes are typically paid under the FLSA; meal breaks of 30 minutes or more during which the employee is fully relieved of duties are typically unpaid.
Use 24-hour (military) time
Enter times in 24-hour format to avoid AM/PM confusion. 9:00 AM = 09:00, 1:00 PM = 13:00, 5:30 PM = 17:30, midnight = 00:00.
Round consistently
Many employers round time to the nearest 5, 6, or 15 minutes. If your employer uses rounding, apply it uniformly to both start and end times. The FLSA permits rounding to the nearest 5 minutes (or one-tenth of an hour) as long as it averages out over time.
Keep copies of your records
The FLSA requires employers to keep payroll records for at least 3 years. As an employee, keeping your own records protects you in case of wage disputes.
Decimal Hours Conversion
Payroll systems often require hours in decimal format rather than hours and minutes. To convert, divide the minutes by 60:
Decimal Hours = Hours + (Minutes ÷ 60)
| H:MM | Decimal | Calculation |
|---|---|---|
| 8:00 | 8.0000 | 8 + 0/60 |
| 8:15 | 8.2500 | 8 + 15/60 |
| 8:30 | 8.5000 | 8 + 30/60 |
| 8:45 | 8.7500 | 8 + 45/60 |
| 7:20 | 7.3333 | 7 + 20/60 |
| 9:06 | 9.1000 | 9 + 6/60 |
This calculator displays both the formatted (Xh Ym) and decimal (X.XXXX) representation of total hours for easy payroll entry.