{
  "schemaVersion": 1,
  "slug": "soup-serving-calculator",
  "category": "cooking",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "9664d95a7ac153d0de0343bd26241073dd448571db807b5be4a5eabf62a6eb4d",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/soup-serving-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": "n = 1000V ÷ b; n₁ = 1000V ÷ 250; n₂ = 1000V ÷ 400",
    "vars": [
      [
        "V",
        "Pot volume (L)"
      ],
      [
        "b",
        "Bowl size (mL)"
      ]
    ],
    "note": "Reference portions use 250 mL and 400 mL. The entered bowl size controls the main serving estimate; recipe multiplier compares it with four portions."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const ml = potLitres*1000; return { servings: ml/bowlMl, servingsStarter: ml/250, servingsMain: ml/400, ingredientMultiplier: (ml/bowlMl)/4 };",
    "inputs": [
      {
        "name": "potLitres",
        "type": "number",
        "default": 4,
        "min": 0.1,
        "max": 500,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "bowlMl",
        "type": "number",
        "default": 300,
        "min": 50,
        "max": 2000,
        "step": 10,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "servings",
        "precision": 1,
        "unit": "bowls"
      },
      {
        "name": "servingsStarter",
        "precision": 1,
        "unit": "bowls"
      },
      {
        "name": "servingsMain",
        "precision": 1,
        "unit": "bowls"
      },
      {
        "name": "ingredientMultiplier",
        "precision": 2,
        "unit": "x"
      }
    ],
    "interpret": null
  }
}
