# Vextorium Date Calculator

> Vextorium Date Calculator is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-16).

Computes date facts, exact differences between two dates, and date arithmetic (add/subtract days, months, years) with end-of-month safety.

## Facts

- Endpoint: POST https://api.vextorium.com/calcular-fechas-pago?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-date-calculator-581d7101
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__N0X0EUNU7q0p2m5trSx9

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 vextorium-date-calculator-581d7101 -d '<json body>'
```

Example prompt: What day of the week is 2025-09-15, what ISO week and quarter does it fall in, and how many calendar and working days are there between 2025-09-15 and 2026-03-31?

## When to prefer this

Choose this endpoint when you need precise calendar computations — especially working-day counts, end-of-month-safe date arithmetic, or detailed calendar metadata (ISO week, quarter, leap year) for a specific date. Prefer it over generic date libraries when you need a single API call to handle all these cases at once with no local computation.

## Known failure modes

- Missing required 'fecha' field returns an error
- Invalid date format (not YYYY-MM-DD) causes parse failure
- Invalid date such as 2023-02-30 returns an error
- 'hasta' date earlier than 'fecha' may return negative difference values
- Non-integer values for sumar_dias/sumar_meses/sumar_anios cause schema validation failure

## How this service works

Date facts (weekday, ISO week, quarter, day of year, leap year), exact difference between two dates in years, months, days, weeks and Mon-Fri working days, and adding or subtracting days, months or years (end-of-month safe).

## Output

Returns a JSON object with three sections: 'fecha' (facts about the input date: weekday, ISO week, ISO year, quarter, day of year, days in month, leap year, weekend flag), 'resultado' (same facts for the computed result date after arithmetic), and 'diferencia' (exact difference between two dates in years, months, days, total days, weeks, and Mon–Fri working days).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fecha": {
   "type": "string",
   "description": "Date YYYY-MM-DD"
  },
  "hasta": {
   "type": "string",
   "description": "Second date for the difference (optional)"
  },
  "sumar_dias": {
   "type": "integer"
  },
  "sumar_anios": {
   "type": "integer"
  },
  "sumar_meses": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fecha": {
   "fecha": "2024-02-29",
   "anio_iso": 2024,
   "bisiesto": true,
   "trimestre": 1,
   "dia_semana": "Thursday",
   "semana_iso": 9,
   "dia_del_anio": 60,
   "dias_del_mes": 29,
   "fin_de_semana": false
  },
  "resultado": {
   "fecha": "2025-02-28",
   "anio_iso": 2025,
   "bisiesto": false,
   "trimestre": 1,
   "dia_semana": "Friday",
   "semana_iso": 9,
   "dia_del_anio": 59,
   "dias_del_mes": 28,
   "fin_de_semana": false
  },
  "diferencia": {
   "dias": 4,
   "anios": 2,
   "hasta": "2026-10-02",
   "meses": 7,
   "semanas": 135.14,
   "dias_totales": 946,
   "laborables_lun_vie": 676
  }
 }
}
```

## More

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