{
  "schemaVersion": 1,
  "slug": "walking-calories-calculator",
  "category": "health",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "ed00b67554dcfe98828e45a0c86dedfaa2e436f17ab389cc64851345bce5a493",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/walking-calories-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": "MET = min(max(1.5 + 0.5 × v, 2), 8); E = MET × 3.5 × m ÷ 200 × t",
    "vars": [
      [
        "v",
        "Walking speed (km/h)"
      ],
      [
        "m",
        "Body weight (kg)"
      ],
      [
        "t",
        "Time walking (min)"
      ],
      [
        "MET",
        "Intensity, clipped to 2–8"
      ],
      [
        "E",
        "Calories burned (kcal)"
      ]
    ],
    "note": "MET estimate = 1.5+0.5v clipped to 2–8; kcal = MET×3.5×kg÷200×minutes. This is a simplified estimate, not a personal measurement."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const met = Math.min(Math.max(1.5 + 0.5*speed, 2), 8); const cal = met*3.5*weight/200*minutes; return { calories: cal, met, caloriesPerHour: minutes>0 ? cal/(minutes/60) : 0, caloriesPerKm: speed>0 ? cal/(speed*minutes/60) : 0 };",
    "inputs": [
      {
        "name": "weight",
        "type": "number",
        "default": 70,
        "min": 20,
        "max": 400,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "minutes",
        "type": "number",
        "default": 60,
        "min": 1,
        "max": 1440,
        "step": 1,
        "slider": true
      },
      {
        "name": "speed",
        "type": "number",
        "default": 5,
        "min": 1,
        "max": 10,
        "step": 0.1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "calories",
        "precision": 0,
        "unit": "kcal"
      },
      {
        "name": "met",
        "precision": 1,
        "unit": ""
      },
      {
        "name": "caloriesPerHour",
        "precision": 0,
        "unit": "kcal/h"
      },
      {
        "name": "caloriesPerKm",
        "precision": 0,
        "unit": "kcal/km"
      }
    ],
    "interpret": null
  }
}
