# Work Time Calc – Timesheet Hours Calculator

> Work Time Calc – Timesheet Hours Calculator is a paid API for AI agents from work-time-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Calculates total paid hours from clock-in/out pairs with unpaid break deduction, optional time rounding, per-day totals, and overlap detection.

## Facts

- Endpoint: GET https://work-time-calc.x402tookit.com/timesheet?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/work-time-calc-timesheet-hours-calculator-c42cd5da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1aeUYeZxj68wpQcG_YQce

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability work-time-calc-timesheet-hours-calculator-c42cd5da
```

Example prompt: Calculate my total paid hours for the week from these clock-in/out pairs: Monday 09:00–17:30 and Tuesday 08:45–17:00, deducting a 30-minute unpaid lunch each day and rounding each shift to the nearest 15 minutes.

## When to prefer this

Use this endpoint when you need to compute paid work hours from raw punch-in/punch-out pairs, especially when break deduction and time rounding (nearest 5, 15, 30, 60 minutes) are required. It handles up to 200 timesheet entries in a single call and returns both per-entry and per-day aggregations, making it ideal for weekly payroll summaries. Prefer it over general date-difference calculations when you specifically need unpaid break logic, rounding modes, and overlap flagging.

## Known failure modes

- Malformed ISO 8601 timestamps in entries parameter returns an error
- Clock-out before clock-in triggers a validation warning or error per entry
- More than 200 entries submitted exceeds the limit
- breakMinutes larger than shift duration results in zero or negative paid time
- Invalid roundMinutes value (not in allowed set) returns an error
- Overlapping entries are flagged in warnings but may still compute partial results

## How this service works

Total hours from clock-in/out pairs with unpaid break deduction, optional rounding, per-day totals and overlap flags.

## Output

Returns a JSON object with totalPaidHours, totalPaidMinutes, an entries array (each with in/out timestamps, grossMinutes, and paidMinutes), a byDay map of daily paid hours, any overlap or rounding warnings, and a human-readable summary string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "entries"
     ],
     "properties": {
      "entries": {
       "type": "string",
       "description": "Semicolon-separated in/out pairs, e.g. 2026-03-02T09:00/2026-03-02T17:30;2026-03-03T08:45/2026-03-03T17:00 (up to 200)"
      },
      "roundMode": {
       "type": "string",
       "description": "nearest (default, halves round up), up or down"
      },
      "breakMinutes": {
       "type": "integer",
       "description": "Unpaid minutes deducted from every entry (default 0)"
      },
      "roundMinutes": {
       "type": "integer",
       "description": "Round each entry's paid time to a multiple of this many minutes: 1, 5, 6, 10, 15, 30 or 60 (default 0 = exact)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "byDay": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "2026-03-02": {
         "type": [
          "null",
          "number"
         ]
        },
        "2026-03-03": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "clock": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "entries": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "in": {
          "type": [
           "null",
           "string"
          ]
         },
         "out": {
          "type": [
           "null",
           "string"
          ]
         },
         "paidMinutes": {
          "type": [
           "null",
           "number"
          ]
         },
         "grossMinutes": {
          "type": [
           "null",
           "number"
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/work-time-calc-timesheet-hours-calculator-c42cd5da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from work-time-calc.x402tookit.com](https://www.zero.xyz/host/work-time-calc.x402tookit.com/llms.txt)
