{
  "schemaVersion": 1,
  "slug": "sourdough-calculator",
  "category": "cooking",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "78a16785d5dd957c0cb92d5e135b1ae10c859332b97a4a2e2f78cf5de4a0ad87",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/sourdough-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": "T = F × (1 + h÷100 + s÷100 + a÷100)",
    "vars": [
      [
        "F",
        "Flour (g)"
      ],
      [
        "h",
        "Hydration (%)"
      ],
      [
        "s",
        "Starter (%)"
      ],
      [
        "a",
        "Salt (%)"
      ]
    ],
    "note": "Baker's percentages: water, starter and salt are all relative to flour F. Number of 800 g loaves = T ÷ 800."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-12",
    "sources": [
      {
        "name": "King Arthur Baking — Baker’s percentages and hydration",
        "url": "https://www.kingarthurbaking.com/pro/reference/bakers-percentage"
      }
    ],
    "referenceRole": "definition",
    "implementationHash": "78a16785d5dd957c0cb92d5e135b1ae10c859332b97a4a2e2f78cf5de4a0ad87",
    "basis": "T = F × (1 + h÷100 + s÷100 + a÷100)",
    "limitations": "The references explain definitions and methods; any extra preset must be checked against the assumptions on this page."
  },
  "contract": {
    "compute": "const water = flourGrams*hydration/100; const starter = flourGrams*starterPercent/100; const salt = flourGrams*saltPercent/100; const total = flourGrams+water+starter+salt; return { waterGrams: water, starterGrams: starter, saltGrams: salt, totalDough: total, loafCount: total/800 };",
    "inputs": [
      {
        "name": "flourGrams",
        "type": "number",
        "default": 500,
        "min": 0,
        "max": 100000,
        "step": 10
      },
      {
        "name": "hydration",
        "type": "number",
        "default": 75,
        "min": 0,
        "max": 120,
        "step": 1,
        "slider": true
      },
      {
        "name": "starterPercent",
        "type": "number",
        "default": 20,
        "min": 0,
        "max": 100,
        "step": 1,
        "slider": true
      },
      {
        "name": "saltPercent",
        "type": "number",
        "default": 2,
        "min": 0,
        "max": 5,
        "step": 0.1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "waterGrams",
        "precision": 1,
        "unit": "g"
      },
      {
        "name": "starterGrams",
        "precision": 1,
        "unit": "g"
      },
      {
        "name": "saltGrams",
        "precision": 1,
        "unit": "g"
      },
      {
        "name": "totalDough",
        "precision": 0,
        "unit": "g"
      },
      {
        "name": "loafCount",
        "precision": 2,
        "unit": ""
      }
    ],
    "interpret": null
  }
}
