# Work Time Calc – Working Hours Between Timestamps

> Work Time Calc – Working Hours Between Timestamps 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 the net working hours between two timestamps based on a custom weekly schedule with break windows and an optional holiday exclusion list.

## Facts

- Endpoint: GET https://work-time-calc.x402tookit.com/working-hours?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-working-hours-between-timestamps-2623d7ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_misvsS8FncXPCdmqXUuCl

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-working-hours-between-timestamps-2623d7ed
```

Example prompt: How many working hours are there between 2024-06-03T09:00 and 2024-06-28T17:00, using a mon-fri 09:00-12:00 13:00-17:00 schedule, and excluding 2024-06-19 as a holiday?

## When to prefer this

Choose this endpoint when you need to compute net working time between two timestamps under a custom weekly schedule with optional break windows and holiday exclusions — especially for payroll, billing, SLA tracking, or project estimation use cases. Prefer it over simple date-diff tools when you need schedule-aware filtering (e.g. excluding lunch breaks, weekends, and public holidays).

## Known failure modes

- Missing required query params (start, end, schedule) returns an error
- End timestamp before start timestamp returns a validation error
- Malformed schedule string (wrong format) may return a degraded result or error
- Invalid date formats in start/end or holidays list cause parsing failures
- Very large date ranges may result in truncated per-day arrays (perDayTruncated=true)

## How this service works

Working hours between two timestamps under a weekly schedule with breaks and a holiday list.

## Output

Returns total working hours, minutes, and seconds within the specified range after filtering out non-scheduled time and holidays. Also includes wall clock hours, a per-day breakdown with date, weekday, hours worked, and any notes (e.g. holiday), plus a summary string, verdict, and optional degraded/disclaimer flags.

## 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": [
      "start",
      "end",
      "schedule"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "Local end YYYY-MM-DDTHH:MM (no zone), not before start"
      },
      "start": {
       "type": "string",
       "description": "Local start YYYY-MM-DDTHH:MM (no zone)"
      },
      "holidays": {
       "type": "string",
       "description": "Comma-separated holiday dates YYYY-MM-DD (no working time)"
      },
      "schedule": {
       "type": "string",
       "description": "Weekly windows, e.g. mon-fri 09:00-12:00 13:00-17:00; sat 09:00-13:00"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "clock": {
       "type": [
        "null",
        "string"
       ]
      },
      "perDay": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": [
           "null",
           "string"
          ]
         },
         "note": {
          "type": [
           "null",
           "string"
          ]
         },
         "hours": {
          "type": [
           "null",
           "number"
          ]
         },
         "weekday": {
          "type": [
           "null",
           "string"
          ]
         }
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
       
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/work-time-calc-working-hours-between-timestamps-2623d7ed/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)
