Time Calculator API - add/subtract durations or calculate time between two timestamps
time_calculatorAdd or subtract durations (1:30:00, 2h 15m, -45 min, 1d 3h) optionally onto a clock time, or compute the exact elapsed duration between two clock times or ISO datetimes (handles overnight shifts). 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/time-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": {
"mode": "add",
"clockTime": "08:30",
"durations": "1:30:00\n2h 15m\n-45 min"
},
"name": "time_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End time or datetime (mode=diff), e.g. 17:45 or 2026-11-21 06:30 | |
| mode | No | add (sum/subtract durations) or diff (time between start and end) | add |
| start | No | Start time or datetime (mode=diff), e.g. 08:30 or 2026-11-20 22:00 | |
| clockTime | No | Optional clock time to add the sum onto (mode=add), e.g. 08:30 | |
| durations | No | Durations, newline-separated or JSON array (for mode=add), e.g. 1:30:00\n2h 15m\n-45 min |