{
  "schemaVersion": 1,
  "slug": "turtle-tank-size-calculator",
  "category": "pets",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "e3d357bdfee4805e7c354adc8d64f173dbcb8054bbb9f0561ff2300956297061",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/turtle-tank-size-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": "G = 10L×n; Gₐ = 10Lₐ×n; T = max(36,6Lₐ); B = (2Lₐ)²",
    "vars": [
      [
        "L",
        "Current shell length (in)"
      ],
      [
        "Lₐ",
        "Expected adult shell length (in)"
      ],
      [
        "n",
        "Number of turtles"
      ],
      [
        "G",
        "Rough water-volume estimate (US gal)"
      ],
      [
        "Gₐ",
        "Rough adult-size volume estimate (US gal)"
      ],
      [
        "T",
        "Illustrative tank length (in)"
      ],
      [
        "B",
        "Illustrative basking area (sq in)"
      ]
    ],
    "note": "This is a rough arithmetic planning aid, not a veterinary minimum or complete habitat plan. It estimates gallons as shell length × 10 × turtle count, an adult-size volume the same way, tank length as max(36 in, 6 × adult shell length), and basking area as (2 × adult length)². These rules do not account for species, water depth, filtration, lighting, temperature or individual needs. Confirm a species-specific setup with a reptile veterinarian."
  },
  "externalEvidence": {
    "reviewedAt": "2026-09-26",
    "sources": [
      {
        "name": "VCA Animal Hospitals — Housing Aquatic Turtles",
        "url": "https://vcahospitals.com/know-your-pet/turtles-aquatic-housing"
      }
    ]
  },
  "contract": {
    "compute": "const minGallons=shellLength*10*count,adultGallons=adultLength*10*count,tankLength=Math.max(36,adultLength*6);return {minGallons,adultGallons,tankLength,baskingArea:(adultLength*2)**2,note:'Rule-of-thumb volume only; confirm a species-specific habitat plan'};",
    "inputs": [
      {
        "name": "shellLength",
        "type": "number",
        "default": 4,
        "min": 1,
        "max": 24,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "count",
        "type": "number",
        "default": 1,
        "min": 1,
        "max": 8,
        "step": 1
      },
      {
        "name": "adultLength",
        "type": "number",
        "default": 10,
        "min": 1,
        "max": 30,
        "step": 0.5,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "minGallons",
        "precision": 0,
        "unit": "gal"
      },
      {
        "name": "adultGallons",
        "precision": 0,
        "unit": "gal"
      },
      {
        "name": "tankLength",
        "precision": 0,
        "unit": "in"
      },
      {
        "name": "baskingArea",
        "precision": 0,
        "unit": "sq in"
      },
      {
        "name": "note",
        "precision": 0,
        "unit": "",
        "type": "text"
      }
    ],
    "interpret": null
  }
}
