{
  "schemaVersion": 1,
  "slug": "window-blind-size-calculator",
  "category": "household",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "09d0aa3c9705e5bc438a0e5860c2780e765aba425dc8adb5ea1bae7761bb338c",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/window-blind-size-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": "inside width = W − 0.25; inside drop = H; outside width = W + 2o; outside drop = H + o + 2",
    "vars": [
      [
        "W",
        "Window width (in)"
      ],
      [
        "H",
        "Window height (in)"
      ],
      [
        "o",
        "Overlap (in)"
      ],
      [
        "outside",
        "Mount flag: 1 = outside, 0 = inside"
      ],
      [
        "Bw",
        "Blind width"
      ],
      [
        "Bd",
        "Blind drop (height)"
      ]
    ],
    "note": "Inside width = opening width − 0.25 in; inside drop = opening height. Outside width = frame width + 2×overlap; outside drop = frame height + overlap + 2 in. These are estimates, not a fit verdict; follow the manufacturer’s fitting guide."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const outside=mount==='outside';const blindWidth=outside?windowWidth+overlap*2:windowWidth-0.25;const blindDrop=outside?windowHeight+overlap+2:windowHeight;return{blindWidth,blindDrop,blindWidthCm:blindWidth*2.54,blindDropCm:blindDrop*2.54};",
    "inputs": [
      {
        "name": "windowWidth",
        "type": "number",
        "default": 36,
        "min": 6,
        "max": 300,
        "step": 0.25,
        "slider": true
      },
      {
        "name": "windowHeight",
        "type": "number",
        "default": 60,
        "min": 6,
        "max": 300,
        "step": 0.25,
        "slider": true
      },
      {
        "name": "mount",
        "type": "select",
        "default": "outside",
        "options": [
          {
            "value": "inside"
          },
          {
            "value": "outside"
          }
        ]
      },
      {
        "name": "overlap",
        "type": "number",
        "default": 2,
        "min": 0,
        "max": 12,
        "step": 0.5,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "blindWidth",
        "precision": 2,
        "unit": "in"
      },
      {
        "name": "blindDrop",
        "precision": 2,
        "unit": "in"
      },
      {
        "name": "blindWidthCm",
        "precision": 1,
        "unit": "cm"
      },
      {
        "name": "blindDropCm",
        "precision": 1,
        "unit": "cm"
      }
    ],
    "interpret": null
  }
}
