{
  "schemaVersion": 1,
  "slug": "rabbit-age-calculator",
  "category": "pets",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "380159773c3f431685a1c172b0538d564c198040de0a36be5ec827de3bd2b1c0",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/rabbit-age-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "Stage = kit (age < 0.5 y); junior (< 1 y); adult (< 5 y); senior (≥ 5 y)",
    "vars": [
      [
        "t",
        "Rabbit age (years)"
      ],
      [
        "H",
        "Human-equivalent years"
      ],
      [
        "E",
        "Life expectancy by housing"
      ]
    ],
    "note": "Approximate life-stage bands only; no reliable rabbit-to-human age conversion is used."
  },
  "externalEvidence": {
    "reviewedAt": "2026-09-26",
    "sources": [
      {
        "name": "RSPCA — Rabbit Care, Behaviour and Welfare",
        "url": "https://science.rspca.org.uk/en/web/rspca/adviceandwelfare/pets/rabbits"
      }
    ]
  },
  "contract": {
    "compute": "const stage=rabbitYears<0.5?'Kit':rabbitYears<1?'Junior':rabbitYears<5?'Adult':'Senior'; return {lifeStage:stage,note:'Life-stage categories are approximate; there is no reliable human-age conversion for rabbits.'};",
    "inputs": [
      {
        "name": "rabbitYears",
        "type": "number",
        "default": 2,
        "min": 0,
        "max": 18,
        "step": 0.25,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "lifeStage",
        "precision": 0,
        "unit": "",
        "type": "text"
      },
      {
        "name": "note",
        "precision": 0,
        "unit": "",
        "type": "text"
      }
    ],
    "interpret": null
  }
}
