calculate_work_hours is a single call, but the ruleset it takes carries exactly the parts people get wrong — california's daily 1.5x at 8 hours, its 2x at 12 and its seventh-consecutive-day rule; nevada's threshold that switches behaviour depending on whether the rate is below $18 an hour; colorado's 12-hour daily trigger. Rounding and workweek start are parameters rather than silent defaults, which matters because each of them moves the total. time_and_a_half is the degenerate case for when the overtime hours are already known and only the rate is in question.
A payroll-hours calculator with two tools: a full timecard calculation across named rulesets, and a standalone time-and-a-half rate.
- Timecard maths with the variations that change the answer: calculate_work_hours takes clock in and out entries, an hourlyRate, a rounding option and a workweekStart, and applies a named ruleset — federal at 40h a week, california at 1.5x after 8h a day, 2x after 12h a day and a 7th-day rule, alaska at 8h a day or 40h a week, colorado at 12h a day or 40h a week, and nevada at 8h a day below $18 an hour and weekly above it.
- A single figure when that is all you need: time_and_a_half returns the 1.5x overtime rate and total overtime pay from an hourly rate and overtime hours.
No credentials are configured on the server.
One command — npx -y hourledger-mcp
