{
  "schemaVersion": 1,
  "slug": "appliance-wattage-calculator",
  "category": "household",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "3eeceee10eb416c66217d5bb8c8c07af2f3c0a3f13cd2f72b52ff2d8213fd27e",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/appliance-wattage-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": "monthly = W_a × q ÷ 1000 × h × 30 × rate",
    "vars": [
      [
        "monthly",
        "monthly electricity cost"
      ],
      [
        "W_a",
        "appliance wattage (from lookup table)"
      ],
      [
        "q",
        "quantity"
      ],
      [
        "h",
        "hours of use per day"
      ],
      [
        "rate",
        "price per kWh"
      ]
    ],
    "note": "W_a comes from a built-in table (e.g. refrigerator 150 W, dryer 3000 W); yearly cost uses 365 days."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const W = { refrigerator:150, freezer:200, microwave:1000, dishwasher:1800, washingMachine:500, dryer:3000, oven:2400, airConditioner:1200, spaceHeater:1500, waterHeater:4000, tv:100, desktop:200, laptop:60, vacuum:1000 }; const w = (W[appliance] || 100)*quantity; const dailyKwh = w/1000*hoursPerDay; return { totalWatts: w, dailyKwh, monthlyCost: dailyKwh*30*rate, yearlyCost: dailyKwh*365*rate };",
    "inputs": [
      {
        "name": "appliance",
        "type": "select",
        "default": "refrigerator",
        "options": [
          {
            "value": "refrigerator"
          },
          {
            "value": "freezer"
          },
          {
            "value": "microwave"
          },
          {
            "value": "dishwasher"
          },
          {
            "value": "washingMachine"
          },
          {
            "value": "dryer"
          },
          {
            "value": "oven"
          },
          {
            "value": "airConditioner"
          },
          {
            "value": "spaceHeater"
          },
          {
            "value": "waterHeater"
          },
          {
            "value": "tv"
          },
          {
            "value": "desktop"
          },
          {
            "value": "laptop"
          },
          {
            "value": "vacuum"
          }
        ]
      },
      {
        "name": "quantity",
        "type": "number",
        "default": 1,
        "min": 1,
        "max": 50,
        "step": 1,
        "slider": true
      },
      {
        "name": "hoursPerDay",
        "type": "number",
        "default": 3,
        "min": 0,
        "max": 24,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "rate",
        "type": "number",
        "default": 0.17,
        "min": 0,
        "max": 5,
        "step": 0.001,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "totalWatts",
        "precision": 0,
        "unit": "W"
      },
      {
        "name": "dailyKwh",
        "precision": 2,
        "unit": "kWh"
      },
      {
        "name": "monthlyCost",
        "precision": 2,
        "unit": "$"
      },
      {
        "name": "yearlyCost",
        "precision": 2,
        "unit": "$"
      }
    ],
    "interpret": null
  }
}
