{
  "schemaVersion": 1,
  "slug": "fish-tank-stocking-calculator",
  "category": "pets",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "513bbd2edc10fc5acc11acd85194a104db6a625a71d225ef2701296c857c1558",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/fish-tank-stocking-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": "Freshwater surface-area reference (inches) = tank length × width ÷ 12; current load = total adult fish length ÷ reference × 100%",
    "vars": [
      [
        "length, width",
        "tank footprint dimensions (in)"
      ],
      [
        "reference",
        "Merck general freshwater surface-area reference"
      ],
      [
        "current load",
        "current adult fish length compared with reference"
      ]
    ],
    "note": "The 1 inch per 12 square inches reference is a broad freshwater guideline, not a safe stocking limit. Species, adult size, territory, filtration, water tests and maintenance determine capacity; coldwater and saltwater systems differ."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const surfaceArea=length*width; const referenceInches=surfaceArea/12; const currentLoad=referenceInches>0?currentFish/referenceInches*100:0; return {surfaceArea,referenceInches,currentLoad};",
    "inputs": [
      {
        "name": "length",
        "type": "number",
        "default": 36,
        "min": 1,
        "max": 240,
        "step": 0.25,
        "slider": true
      },
      {
        "name": "width",
        "type": "number",
        "default": 18,
        "min": 1,
        "max": 120,
        "step": 0.25,
        "slider": true
      },
      {
        "name": "currentFish",
        "type": "number",
        "default": 25,
        "min": 0,
        "max": 1000,
        "step": 1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "surfaceArea",
        "precision": 0,
        "unit": "sq in"
      },
      {
        "name": "referenceInches",
        "precision": 0,
        "unit": "in"
      },
      {
        "name": "currentLoad",
        "precision": 1,
        "unit": "%"
      }
    ],
    "interpret": null
  }
}
