80trust / 100

Calculators Age Calculator

by AgentTools in Company & people data

x402 APIPassing, checked 3 h ago

Calculate a person's exact age in calendar years, months and days from their date of birth, plus total days lived. Reference date defaults to today (UTC). Use this when an agent needs to exact age in years, months and days.

GET https://agentstoolshub.com/api/v1/calculators/age-calculator

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
152 ms typical, 182 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agentstoolshub.com/api/v1/calculators/age-calculator?birth=1990-06-15&on=2026-09-01"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentstoolshub.com%2Fapi%2Fv1%2Fcalculators%2Fage-calculator
const res = await pay("https://agentstoolshub.com/api/v1/calculators/age-calculator?birth=1990-06-15&on=2026-09-01");
console.log(await res.json());

Example input

{
  "birth": "1990-06-15",
  "on": "2026-09-01"
}

Example output

{
  "result": {
    "answer": "36 years, 2 months, 17 days",
    "answerLabel": "Age at 2026-09-01",
    "details": [
      {
        "label": "Total days lived",
        "value": "13,227"
      },
      {
        "label": "Total weeks",
        "value": "1,889"
      },
      {
        "label": "Next birthday in",
        "value": "287 days"
      }
    ],
    "steps": [
      "Birth 1990-06-15 → reference 2026-09-01 (UTC)",
      "Calendar difference = 36y 2m 17d"
    ],
    "value": 36
  },
  "tool": "age-calculator"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402142 ms$0.002
7 h agoPassed402152 ms$0.002
11 h agoPassed402182 ms$0.002
14 h agoPassed402152 ms$0.002
18 h agoPassed402169 ms$0.002
21 h agoPassed402151 ms$0.002
25 h agoPassed402174 ms$0.002
28 h agoPassed402152 ms$0.002
33 h agoPassed402329 ms$0.002