# Qty Date — Deterministic Date Computation

> Qty Date — Deterministic Date Computation is a paid API for AI agents from qty.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Resolves and computes dates deterministically from natural language or structured date expressions, returning canonical date values without hallucination.

## Facts

- Endpoint: GET https://qty.vercel.app/v1/date?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qty-date-deterministic-date-computation-805f4010
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EzxMI1QEwBr_FlRz09MNE

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 qty-date-deterministic-date-computation-805f4010
```

Example prompt: What date is exactly 45 working days from today? Use Qty's deterministic date endpoint so I get a reliable answer, not a guess.

## When to prefer this

Choose this endpoint when you need a guaranteed, deterministic date computation — especially for business day or working day offsets — and cannot risk an LLM hallucinating a wrong date. Ideal for contracts, compliance deadlines, scheduling, and payroll where exact dates are critical and must never be invented.

## Known failure modes

- Missing required 'input' parameter returns a validation error
- Unrecognized or ambiguous date expression may return no quantities
- Invalid path query parameter causes processing failure
- Payment failure via x402 protocol blocks the request
- Network timeout on vercel.app serverless cold start

## How this service works

Qty converts known units for free and interprets messy quantities, prices, recipes, sizes, and dates in code. It never invents a number.

## Output

Returns a JSON object containing a quantities array where each entry has a unit of 'date', a textValue with the resolved ISO date string (e.g. '2026-10-07'), and a definitionId indicating which date computation rule was applied (e.g. 'date.working_days.v1'). Also includes a see object with links to docs, MCP, and related discovery resources.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "path": {
       "type": "string"
      },
      "price": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "path": {
       "type": "string"
      },
      "price": {
       "type": "string"
      },
      "method": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "see": {
   "mcp": "/mcp",
   "docs": "/docs",
   "llms": "/llms.txt",
   "x402": "/.well-known/x402.json",
   "openapi": "/openapi.json",
   "llmsFull": "/llms-full.txt",
   "agentCard": "/.well-known/agent-card.json"
  },
  "quantities": [
   {
    "unit": "date",
    "textValue": "2026-10-07",
    "definitionId": "date.working_days.v1"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qty-date-deterministic-date-computation-805f4010/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qty.vercel.app](https://www.zero.xyz/host/qty.vercel.app/llms.txt)
