Work hours / time card
calc_hoursCalculate weekly time card totals from shifts, including unpaid breaks, rounding, daily and weekly overtime, and pay at an hourly rate.
Instructions
Weekly time card: add shifts (start and end "HH:MM", unpaid break minutes; an end at or before the start is an overnight shift), up to 6 shifts a day. Totals per shift, per day and per week in h:mm and decimal hours; optional rounding of each shift to 5, 6 or 15 minutes; overtime over N hours a day and/or N regular hours a week (daily first, then weekly), paid at a multiplier (default 1.5); pay at an hourly rate. Web version: https://s3eidat.github.io/hours-calc/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shifts | Yes | The week's shifts. | |
| weekOf | No | Optional: any date in that week (YYYY-MM-DD) to date each day. | |
| currency | No | Currency label for the summary. | |
| weekStart | No | First day of the week (order of the days). | saturday |
| hourlyRate | No | Pay per regular hour. | |
| roundMinutes | No | Round each shift to the nearest 5, 6 or 15 minutes (0 = off). | |
| dailyOvertimeHours | No | Hours per day after which time is overtime (e.g. 8). | |
| overtimeMultiplier | No | Overtime pay multiplier. | |
| weeklyOvertimeHours | No | Regular hours per week after which time is overtime (e.g. 40). |