{
  "schemaVersion": 1,
  "slug": "bbq-grill-time-calculator",
  "category": "cooking",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "7b61fbd916594321e66560d768849a2520a0f841536271574cb13729d9824943",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/bbq-grill-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 × m_lb × 2.20462",
    "vars": [
      [
        "w",
        "Weight, kg"
      ],
      [
        "m_lb",
        "Minutes per pound, lookup"
      ],
      [
        "t",
        "Total minutes"
      ],
      [
        "T",
        "Target internal temp"
      ]
    ],
    "note": "The lookup table stores minutes per pound; × 2.20462 converts to per kg; T is in °F; wrap time appears only for m_lb ≥ 60, at t ÷ 2."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const R={steak:[8,130],chicken:[25,165],ribs:[60,195],pork:[90,203],brisket:[75,203],wholechicken:[35,165],fish:[12,145]};const r=R[meatType]||R.pork;const minKg=r[0]*2.2046226218;const mins=weightKg*minKg;return{totalMinutes:mins,hours:mins/60,minutesPerKg:minKg};",
    "inputs": [
      {
        "name": "weightKg",
        "type": "number",
        "default": 2,
        "min": 0.1,
        "max": 50,
        "step": 0.1,
        "slider": true
      },
      {
        "name": "meatType",
        "type": "select",
        "default": "pork",
        "options": [
          {
            "value": "steak"
          },
          {
            "value": "chicken"
          },
          {
            "value": "ribs"
          },
          {
            "value": "pork"
          },
          {
            "value": "brisket"
          },
          {
            "value": "wholechicken"
          },
          {
            "value": "fish"
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "totalMinutes",
        "precision": 0,
        "unit": "min"
      },
      {
        "name": "hours",
        "precision": 2,
        "unit": "h"
      },
      {
        "name": "minutesPerKg",
        "precision": 0,
        "unit": "min/kg"
      }
    ],
    "interpret": null
  }
}
