Hours & Time Card Calculator API - shifts, breaks, overtime and gross pay
hours_calculatorParse work shifts (day/date, start, end, break minutes; handles overnight shifts) into daily and weekly totals, regular vs overtime hours, gross pay and optional 5/6/15-minute rounding. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/hours-calculator.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shifts": "Mon 9:00 17:30 30\nTue 9:00 17:30 30\nWed 8:30 18:00 45",
"hourlyRate": "20",
"overtimeAfterHours": "40"
},
"name": "hours_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shifts | Yes | Shifts one per line (or JSON array), e.g. Mon 9:00 17:30 30 | |
| hourlyRate | No | Optional hourly pay rate, e.g. 20 | |
| roundMinutes | No | Round each day to 0, 5, 6 or 15 minutes | 0 |
| overtimeAfterHours | No | Weekly hours threshold for overtime, e.g. 40 (optional) | |
| overtimeMultiplier | No | Overtime pay multiplier | 1.5 |
| defaultBreakMinutes | No | Default break minutes for lines without one (optional) |