计算小时数计算器
两次工作,间歇和加班,按工作时数计算。
输入结果时更新 。
关于此计算器
An hours calculator turns a start and end time into total hours worked, subtracting any unpaid break and splitting the result into regular and overtime hours once you pass a daily threshold. Enter times in 24-hour HH:MM or with AM/PM; an end time before the start is treated as an overnight shift. It also reports the paid time as total minutes.
It first measures the gap between clock-in and clock-out (rolling past midnight if needed), then subtracts the unpaid break in minutes to give the paid hours. If you set a daily overtime threshold, any paid time above it is peeled off into an overtime bucket while the rest stays as regular hours; set the threshold to 0 to treat everything as regular. The final figures come out in decimal hours so they drop straight into a pay calculation.
For example, a shift from 9:00 am to 6:00 pm with a 30-minute unpaid break is 8.5 paid hours; with the overtime threshold at 8 hours that splits into 8 regular plus 0.5 overtime. An overnight shift from 22:00 to 06:30 with a 30-minute break comes to 8.0 paid hours. Use it to add up a day’s hours worked, check a paycheck, or size overtime before it is billed.
经常问到的问题
如何处理的突破?
The unpaid break in minutes is subtracted from the worked span before the hours are reported. A 09:00–17:30 shift with a 30-minute break is 8.0 paid hours.
加班时间怎么分开?
超过每日加班门槛值的任何小时从正常时间移到加班时间,8小时门槛值为9.5小时,每天8小时,加1.5小时,设定门槛值为0,把所有工作都算作正常时间。
我如何计算两次之间的工作时间?
Enter your clock-in and clock-out times, set the unpaid break, and the tool returns the paid hours as a decimal — for example 9:00 to 17:30 with a 30-minute break is 8.0 hours.
它可以处理过夜还是墓地的轮班?
Yes. When the end time is earlier than the start, it adds 24 hours, so a 22:00 to 06:00 shift is counted as 8 hours rather than a negative span.
我能得到报酬和小时吗?
此工具以小时为重点。 要将小时乘以小时, 并看到一次或多次轮班的总工资, 请使用时间卡计算器 。
休息是付费还是未付?
您输入的休息时间被视为未支付,从工作时间中减去。如果您有工资,请在0时离开休息区。
API - 使用代码中的计算器
将此计算器称为自由 JSON 端点 。 不需要按键 。 将字段值发送到下面作为查询参数或 JSON 。 任何您省略的, 都会使用相同的默认值, 此页面预填的默认值是预填的; 未知参数是 400, 而不是静音零 。 读取 API 全部文件 →
终点
GET https://calculator.free/api/v1/hours-calculator/
curl
curl "https://calculator.free/api/v1/hours-calculator/?start=09:00&end=17:30"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/hours-calculator/?" + new URLSearchParams({
"start": "09:00",
"end": "17:30"
}));
const data = await r.json();
console.log(data.results);
成果仅是一般指导的估计数,而不是财务、医疗或税务咨询。