{
  "schemaVersion": 1,
  "slug": "candle-burn-time-calculator",
  "category": "household",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "41414d35a747b96b7baf0fe9240af51e5e1ccb5c16ce4f6829fa3d9497ba6fe0",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/candle-burn-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 ÷ r; days = T ÷ 4",
    "vars": [
      [
        "W",
        "Net wax weight (oz)"
      ],
      [
        "r",
        "Measured wax use per hour (oz/h)"
      ],
      [
        "T",
        "Burn time (h)"
      ]
    ],
    "note": "W is net wax weight and r is user-entered measured wax consumption per hour for the same candle design. The default is an example; days assumes 4 burn hours/day."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const totalHours = burnRate > 0 ? weight/burnRate : 0; return { waxPerHour: burnRate, totalHours, days: totalHours/4 };",
    "inputs": [
      {
        "name": "weight",
        "type": "number",
        "default": 8,
        "min": 0.1,
        "max": 500,
        "step": 0.1,
        "requiredValue": true
      },
      {
        "name": "burnRate",
        "type": "number",
        "default": 0.1,
        "min": 0.01,
        "max": 10,
        "step": 0.01,
        "requiredValue": true
      }
    ],
    "outputs": [
      {
        "name": "totalHours",
        "precision": 1,
        "unit": "h",
        "trimTrailingZeros": true
      },
      {
        "name": "waxPerHour",
        "precision": 3,
        "unit": "oz/h",
        "trimTrailingZeros": true
      },
      {
        "name": "days",
        "precision": 1,
        "unit": "days",
        "trimTrailingZeros": true
      }
    ],
    "interpret": null
  }
}
