{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/calculator/age-calculator/schema.json",
  "title": "Age Calculator inputs",
  "description": "Find exact age, total days, and the next birthday from two dates.",
  "type": "object",
  "properties": {
    "birthDate": {
      "title": "Date of birth",
      "type": "string",
      "default": "1990-01-01",
      "format": "date"
    },
    "targetDate": {
      "title": "Age on date",
      "type": "string",
      "description": "Defaults to today",
      "x-defaultToday": true,
      "format": "date"
    }
  },
  "required": [
    "birthDate"
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "1.0.0",
    "calculatorUrl": "https://askcalculators.com/calculator/age-calculator/",
    "queryExample": "https://askcalculators.com/calculator/age-calculator/?birthDate=1990-01-01",
    "migrationStatus": "new",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "formula": {
      "expression": "Exact calendar difference = target date − birth date",
      "note": "Month length and leap years are handled as calendar dates, not average day counts."
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/age-calculator.json",
      "qualifiedReview": "pending",
      "qualifiedReviewer": null,
      "qualifiedReviewDate": null,
      "formulaVersion": "1.0.0",
      "referenceCoverage": "references-pending",
      "releaseTestScope": "Catalog and regression checks are not a professional formula audit; consult release evidence.",
      "historicalMetadataDate": "2026-08-18",
      "historicalMetadataNotice": "The imported date is not evidence of a completed human review."
    },
    "outputs": {
      "exactAge": {
        "title": "Exact age",
        "type": "string",
        "x-format": "text",
        "x-primary": true
      },
      "totalDays": {
        "title": "Total days",
        "type": "number",
        "x-format": "integer"
      },
      "nextBirthday": {
        "title": "Next birthday",
        "type": "string",
        "x-format": "date",
        "format": "date"
      },
      "daysToBirthday": {
        "title": "Days until next birthday",
        "type": "number",
        "x-format": "integer"
      }
    }
  }
}
