# Saylor Innovations Age Calculator

> Saylor Innovations Age Calculator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Calculates exact age from a birthdate, returning years/months/days breakdown, total days lived, and days until the next birthday

## Facts

- Endpoint: GET https://saylorinnovations.com/api/calc/age?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-age-calculator-ce4d886a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VPkNgHnRFpBg6xXytWUWZ

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 saylor-innovations-age-calculator-ce4d886a
```

Example prompt: How old is someone born on March 15, 1990? Give me their exact age in years, months, and days, plus how many total days they've lived and how many days until their next birthday.

## When to prefer this

Use this endpoint when you need a precise, multi-component age breakdown (years, months, days) from a birthdate, especially when you also need total days lived, next birthday date, or days-until-next-birthday in a single call. Prefer it over manual date arithmetic or generic date libraries when building agent workflows that require structured, ready-to-use age data with optional reference-date support.

## Known failure modes

- Missing required 'birthdate' parameter returns an error
- Incorrectly formatted date (not YYYY-MM-DD) may cause a parsing error or unexpected result
- Future birthdates may produce zero or negative ages
- Invalid calendar dates (e.g. February 30) may cause errors
- Reference date ('on') in wrong format may default to today or return an error

## How this service works

Age calculator from birthdate - exact age in years, months and days, total days lived and days until the next birthday

## Output

Returns a JSON object containing: the exact age broken down into years, months, and days; the total number of days lived; the date of the next birthday; the number of days until the next birthday; the day of the week the person was born; the reference date used for calculations; and the timestamp when the check was run.

## 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": [
      "birthdate"
     ],
     "properties": {
      "on": {
       "type": "string",
       "description": "optional reference date YYYY-MM-DD, default today"
      },
      "birthdate": {
       "type": "string",
       "description": "Birth date YYYY-MM-DD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "age",
      "next_birthday"
     ],
     "properties": {
      "age": {
       "type": "object"
      },
      "as_of": {
       "type": "string",
       "description": "Date the figures are valid for"
      },
      "birthdate": {
       "type": "string"
      },
      "checked_at": {
       "type": [
        "string",
        "null"
       ],
       "description": "Time the check was run (UTC)"
      },
      "total_days": {
       "type": "number",
       "description": "Total days"
      },
      "born_weekday": {
       "type": [
        "string",
        "null"
       ],
       "description": "Born weekday"
      },
      "next_birthday": {
       "type": "string",
       "description": "Next birthday"
      },
      "days_until_next_birthday": {
       "type": "number",
       "description": "Days until next birthday"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-age-calculator-ce4d886a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
