# Work Time Calc – Tenure & Anniversary Calculator

> Work Time Calc – Tenure & Anniversary 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 age or employment tenure between two dates, returning years/months/days breakdown, total days, decimal years, and next anniversary date.

## Facts

- Endpoint: GET https://work-time-calc.x402tookit.com/tenure?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-tenure-anniversary-calculator-953353a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lIF4asSgPVokFI1tUDu1W

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-tenure-anniversary-calculator-953353a9
```

Example prompt: How long has Sarah been with the company? She was hired on 2019-03-15 — give me her tenure in years, months, and days, and tell me when her next work anniversary is.

## When to prefer this

Choose this endpoint when you need a precise human-readable breakdown of duration between two dates — specifically for HR/employment tenure or age calculations — including next anniversary detection and decimal years. Prefer over generic date-diff tools when you need the anniversary date and full years/months/days decomposition in one call.

## Known failure modes

- Missing required 'from' query parameter returns an error
- End date before start date ('to' earlier than 'from') returns a validation error
- Malformed date format (not YYYY-MM-DD) causes a parse error
- Future start dates may produce unexpected or zero results
- Payment failure (x402) returns 402 status before computation

## How this service works

Age or tenure between two dates in years, months and days, plus total days, next anniversary and decimal years.

## Output

Returns a structured object including: integer years, months, and days of tenure; total calendar days elapsed; total months; decimal years (e.g. 5.42); the date of the next anniversary; days until that anniversary; and a human-readable summary string. May include a disclaimer and degraded flag if input edge cases apply.

## 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": [
      "from"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "End date YYYY-MM-DD (default today UTC), not before from"
      },
      "from": {
       "type": "string",
       "description": "Start date (birth or hire date) YYYY-MM-DD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "days": {
       "type": [
        "null",
        "number"
       ]
      },
      "years": {
       "type": [
        "null",
        "number"
       ]
      },
      "months": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "totalDays": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "totalMonths": {
       "type": [
        "null",
        "number"
       ]
      },
      "decimalYears": {
       "type": [
        "null",
        "number"
       ]
      },
      "nextAnniversary": {
       "type": [
        "null",
        "string"
       ]
      },
      "daysToNextAnniversary": {
       "type": [
        "null",
        "number"
       ]
      }
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/work-time-calc-tenure-anniversary-calculator-953353a9/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)
