# Work Time Calc – ISO 8601 Duration Parser & Summer

> Work Time Calc – ISO 8601 Duration Parser & Summer 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).

Parse, sum, and format one or more ISO 8601 durations, or convert a raw seconds value into ISO 8601 and human-readable clock form.

## Facts

- Endpoint: GET https://work-time-calc.x402tookit.com/duration?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-iso-8601-duration-parser-summer-0ed33b06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sIpLRb43t7C37dlPfnpGT

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-iso-8601-duration-parser-summer-0ed33b06
```

Example prompt: Can you add up these three durations — PT36H, PT45M, and PT2H30M — and tell me the total in ISO 8601 format as well as broken down into hours and minutes?

## When to prefer this

Choose this endpoint when you need to programmatically parse, sum, or convert ISO 8601 duration strings or raw second counts — especially in payroll, project management, or scheduling contexts where standard duration arithmetic is needed without a full calendar engine. Prefer it over date-diff endpoints when you already have durations and just need to aggregate or reformat them.

## Known failure modes

- Invalid ISO 8601 duration string returns a reasons array with parse error details
- Mixing 'durations' and 'seconds' parameters may yield unexpected results — use one mode at a time
- Very large duration values may produce null for certain fields if overflow occurs
- Missing required 'input' wrapper object returns a 400-level error
- Non-numeric seconds value causes schema validation failure

## How this service works

Parse, sum and format ISO 8601 durations (PT36H, P1Y2M10DT2H30M), or turn seconds into ISO and clock form.

## Output

Returns a JSON object with a 'sum' field containing the aggregated duration in ISO 8601 format plus numeric components (years, months, days, hours, minutes, seconds, totalSeconds), an 'items' array with per-input breakdowns, and a human-readable summary string. When using the 'seconds' input mode, returns the equivalent ISO 8601 string and clock-form decomposition.

## 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": [],
     "properties": {
      "seconds": {
       "type": "number",
       "description": "Alternative: a number of seconds to format (use instead of durations)"
      },
      "carryDays": {
       "type": "boolean",
       "description": "true carries 24 hours into 1 day in the formatted result (default false)"
      },
      "durations": {
       "type": "string",
       "description": "Comma-separated ISO 8601 durations to parse and sum, e.g. PT36H,PT45M"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "sum": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "iso": {
         "type": [
          "null",
          "string"
         ]
        },
        "days": {
         "type": [
          "null",
          "number"
         ]
        },
        "hours": {
         "type": [
          "null",
          "number"
         ]
        },
        "years": {
         "type": [
          "null",
          "number"
         ]
        },
        "months": {
         "type": [
          "null",
          "number"
         ]
        },
        "minutes": {
         "type": [
          "null",
          "number"
         ]
        },
        "seconds": {
         "type": [
          "null",
          "number"
         ]
        },
        "totalSeconds": {}
       }
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "items": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "iso": {
          "type": [
           "null",
           "string"
          ]
         },
         "days": {
          "type": [
           "null",
           "number"
          ]
         },
         "hours": {
          "type": [
           "null",
           "number"
          
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/work-time-calc-iso-8601-duration-parser-summer-0ed33b06/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)
