# Date Calculator

> Date Calculator is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-12-03).

Adds or subtracts days and months from a given date and returns the result with weekday name, day-of-year, and ISO week number.

## Facts

- Endpoint: GET https://api.gadgethumans.com/date-calc?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/date-calculator-9d50c748
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tj1dEbiBnQOywtGZ54OeL

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 date-calculator-9d50c748
```

Example prompt: What date will it be 45 days and 2 months from March 15 2025, and what weekday does it land on?

## When to prefer this

Choose this endpoint when you need fast, pure-computation date arithmetic with enriched calendar metadata (weekday, day-of-year, ISO week) in a single call. It is ideal for scheduling logic, deadline calculation, subscription renewal tracking, or any workflow that needs to offset a date by days and/or months without hitting a full calendar API. Prefer it over general-purpose date libraries when you need a lightweight hosted micro-API with no state or authentication overhead.

## Known failure modes

- Invalid date format returns an error response
- Missing required 'date' parameter causes a 400-level error
- Extreme offsets (e.g. thousands of years) may produce unexpected results
- Non-integer values for days or months fields will likely cause validation errors

## How this service works

Add or subtract days and months from a date and return the result with weekday, day-of-year and ISO week. Pure CPU, instant.

## Output

A JSON object containing the computed result date, the full weekday name (e.g. Wednesday), the day-of-year number (1–366), and the ISO week number (1–53).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "date"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "Start date (default today)"
      },
      "days": {
       "type": "integer",
       "description": "Days to add or subtract"
      },
      "months": {
       "type": "integer",
       "description": "Months to add or subtract"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/date-calculator-9d50c748/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
