{
  "schemaVersion": 1,
  "slug": "turkey-cooking-time-calculator",
  "category": "cooking",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "a026a9a4c550032201b411858d186424669c19eafffe937919bf93525270cc1e",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/turkey-cooking-time-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 = w×(s ? 44 : 33); h = t÷60",
    "vars": [
      [
        "w",
        "Turkey weight (kg)"
      ],
      [
        "s",
        "Stuffed flag (1 or 0)"
      ],
      [
        "t",
        "Roasting time (min)"
      ],
      [
        "h",
        "Roasting time (h)"
      ]
    ],
    "note": "This simple weight multiplier is only a planning estimate, not a cooking schedule or doneness test. Oven conditions and bird shape change the time. Use a food thermometer: USDA says check 165°F in the thickest breast and innermost wing and thigh; if stuffed, the center of the stuffing must also reach 165°F. The estimate uses a 325°F oven assumption. Source: USDA FSIS, https://www.fsis.usda.gov/food-safety/safe-food-handling-and-preparation/poultry/turkey-basics-safe-cooking."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const perKg = stuffed ? 44 : 33; const mins = weightKg*perKg; return { minutes: mins, hours: mins/60, minutesPerKg: perKg, safeInternalTemp: 165 };",
    "inputs": [
      {
        "name": "weightKg",
        "type": "number",
        "default": 6,
        "min": 1,
        "max": 30,
        "step": 0.1,
        "slider": true
      },
      {
        "name": "stuffed",
        "type": "select",
        "default": 0,
        "options": [
          {
            "value": 0
          },
          {
            "value": 1
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "minutes",
        "precision": 0,
        "unit": "min"
      },
      {
        "name": "hours",
        "precision": 2,
        "unit": "h"
      },
      {
        "name": "minutesPerKg",
        "precision": 0,
        "unit": "min/kg"
      },
      {
        "name": "safeInternalTemp",
        "precision": 0,
        "unit": "°F"
      }
    ],
    "interpret": null
  }
}
