{
  "schemaVersion": 1,
  "slug": "standing-desk-height-calculator",
  "category": "productivity",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "a91dd036ea45e4df633452d1bab07b646947d9045d5a9f07c10b7ee29bebc2e0",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/standing-desk-height-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": "h = w × H + s; h_sit = 0.41H + s; w ∈ {0.605, 0.618, 0.628}",
    "vars": [
      [
        "H",
        "Body height (in)"
      ],
      [
        "s",
        "Footwear (in)"
      ],
      [
        "w",
        "Work-type factor"
      ]
    ],
    "note": "Height references use task-specific fixed height ratios plus entered footwear thickness; these are starting estimates, not individualized ergonomic measurements. Standing hours = work hours × standing minutes per hour ÷ 60."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const W={keyboard:0.618,writing:0.605,monitor:0.628,mixed:0.618}; const standingDeskHeight=height*(W[workType]||0.618)+footwear; const sittingDeskHeight=height*0.41+footwear; const standingHoursPerDay=workHoursPerDay*(standingMinutesPerHour/60); return { standingDeskHeight, standingDeskHeightCm:standingDeskHeight*2.54, sittingDeskHeight, standingHoursPerDay };",
    "inputs": [
      {
        "name": "height",
        "type": "number",
        "default": 70,
        "min": 36,
        "max": 96,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "workType",
        "type": "select",
        "default": "keyboard",
        "options": [
          {
            "value": "keyboard"
          },
          {
            "value": "writing"
          },
          {
            "value": "monitor"
          },
          {
            "value": "mixed"
          }
        ]
      },
      {
        "name": "footwear",
        "type": "number",
        "default": 1,
        "min": 0,
        "max": 3,
        "step": 0.25,
        "slider": true
      },
      {
        "name": "standingMinutesPerHour",
        "type": "number",
        "default": 30,
        "min": 0,
        "max": 60,
        "step": 5,
        "slider": true
      },
      {
        "name": "workHoursPerDay",
        "type": "number",
        "default": 8,
        "min": 1,
        "max": 16,
        "step": 0.5,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "standingDeskHeight",
        "precision": 1,
        "unit": "in"
      },
      {
        "name": "standingDeskHeightCm",
        "precision": 1,
        "unit": "cm"
      },
      {
        "name": "sittingDeskHeight",
        "precision": 1,
        "unit": "in"
      },
      {
        "name": "standingHoursPerDay",
        "precision": 1,
        "unit": "h"
      }
    ],
    "interpret": null
  }
}
