{
  "date": "2026-10-31",
  "edition": "NEC 2023",
  "engine": "src/lib/box-fill-data.ts:calculateBoxFill",
  "notes": "Devices input counts single-gang yokes or required gangs for wide devices. Same-box pigtails are excluded; entering grounds are entered as actual counts. Uniform gauges only. Device-only rows are subtotals, not complete installations.",
  "scenarios": [
    {
      "date": "2026-10-31",
      "id": "switch14",
      "inventory": "Two insulated 14 AWG wires; one single-gang switch; one entering 14 AWG ground; internal clamp.",
      "inputs": {
        "boxVolume": 12,
        "wireGauge": "14",
        "conductorCount": 2,
        "deviceCount": 1,
        "internalClamps": 1,
        "groundingConductors": 1,
        "fixtureStuds": 0,
        "terminalBlocks": 0
      },
      "result": {
        "conductorFill": 4,
        "deviceFill": 4,
        "clampFill": 2,
        "groundingFill": 2,
        "studFill": 0,
        "terminalBlockFill": 0,
        "totalFill": 12,
        "boxCapacity": 12,
        "isCompliant": true,
        "fillPercentage": 100,
        "remaining": 0
      }
    },
    {
      "date": "2026-10-31",
      "id": "receptacle12",
      "inventory": "Two 12/2 cables with 12 AWG grounds; one single-gang duplex or GFCI; internal clamp.",
      "inputs": {
        "boxVolume": 18,
        "wireGauge": "12",
        "conductorCount": 4,
        "deviceCount": 1,
        "internalClamps": 1,
        "groundingConductors": 2,
        "fixtureStuds": 0,
        "terminalBlocks": 0
      },
      "result": {
        "conductorFill": 9,
        "deviceFill": 4.5,
        "clampFill": 2.25,
        "groundingFill": 2.25,
        "studFill": 0,
        "terminalBlockFill": 0,
        "totalFill": 18,
        "boxCapacity": 18,
        "isCompliant": true,
        "fillPercentage": 100,
        "remaining": 0
      }
    },
    {
      "date": "2026-10-31",
      "id": "receptacle12-no-clamp",
      "inventory": "Same feed-through receptacle with no internal clamp.",
      "inputs": {
        "boxVolume": 15.75,
        "wireGauge": "12",
        "conductorCount": 4,
        "deviceCount": 1,
        "internalClamps": 0,
        "groundingConductors": 2,
        "fixtureStuds": 0,
        "terminalBlocks": 0
      },
      "result": {
        "conductorFill": 9,
        "deviceFill": 4.5,
        "clampFill": 0,
        "groundingFill": 2.25,
        "studFill": 0,
        "terminalBlockFill": 0,
        "totalFill": 15.75,
        "boxCapacity": 15.75,
        "isCompliant": true,
        "fillPercentage": 100,
        "remaining": 0
      }
    },
    {
      "date": "2026-10-31",
      "id": "two-yokes12",
      "inventory": "Four insulated 12 AWG wires; two entering 12 AWG grounds; two separate single-gang yokes; internal clamp. Same-box pigtails excluded.",
      "inputs": {
        "boxVolume": 22.5,
        "wireGauge": "12",
        "conductorCount": 4,
        "deviceCount": 2,
        "internalClamps": 1,
        "groundingConductors": 2,
        "fixtureStuds": 0,
        "terminalBlocks": 0
      },
      "result": {
        "conductorFill": 9,
        "deviceFill": 9,
        "clampFill": 2.25,
        "groundingFill": 2.25,
        "studFill": 0,
        "terminalBlockFill": 0,
        "totalFill": 22.5,
        "boxCapacity": 22.5,
        "isCompliant": true,
        "fillPercentage": 100,
        "remaining": 0
      }
    },
    {
      "date": "2026-10-31",
      "id": "surge-quad12",
      "inventory": "Two insulated 12 AWG wires in and two out; two entering 12 AWG grounds; wide surge quad strap requires two gangs; no clamps or fittings. All same-box feed/bonding pigtails excluded.",
      "inputs": {
        "boxVolume": 20.25,
        "wireGauge": "12",
        "conductorCount": 4,
        "deviceCount": 2,
        "internalClamps": 0,
        "groundingConductors": 2,
        "fixtureStuds": 0,
        "terminalBlocks": 0
      },
      "result": {
        "conductorFill": 9,
        "deviceFill": 9,
        "clampFill": 0,
        "groundingFill": 2.25,
        "studFill": 0,
        "terminalBlockFill": 0,
        "totalFill": 20.25,
        "boxCapacity": 20.25,
        "isCompliant": true,
        "fillPercentage": 100,
        "remaining": 0
      }
    },
    {
      "date": "2026-10-31",
      "id": "single-gang-alternative",
      "inventory": "Alternative only if the actual listed quad device requires one gang; otherwise identical to surge-quad12.",
      "inputs": {
        "boxVolume": 15.75,
        "wireGauge": "12",
        "conductorCount": 4,
        "deviceCount": 1,
        "internalClamps": 0,
        "groundingConductors": 2,
        "fixtureStuds": 0,
        "terminalBlocks": 0
      },
      "result": {
        "conductorFill": 9,
        "deviceFill": 4.5,
        "clampFill": 0,
        "groundingFill": 2.25,
        "studFill": 0,
        "terminalBlockFill": 0,
        "totalFill": 15.75,
        "boxCapacity": 15.75,
        "isCompliant": true,
        "fillPercentage": 100,
        "remaining": 0
      }
    },
    {
      "date": "2026-10-31",
      "id": "device14-one",
      "inventory": "Device subtotal only: one single-gang yoke connected to 14 AWG.",
      "inputs": {
        "boxVolume": 4,
        "wireGauge": "14",
        "conductorCount": 0,
        "deviceCount": 1,
        "internalClamps": 0,
        "groundingConductors": 0,
        "fixtureStuds": 0,
        "terminalBlocks": 0
      },
      "result": {
        "conductorFill": 0,
        "deviceFill": 4,
        "clampFill": 0,
        "groundingFill": 0,
        "studFill": 0,
        "terminalBlockFill": 0,
        "totalFill": 4,
        "boxCapacity": 4,
        "isCompliant": true,
        "fillPercentage": 100,
        "remaining": 0
      }
    },
    {
      "date": "2026-10-31",
      "id": "device14-two",
      "inventory": "Device subtotal only: two single-gang yokes or one wide two-gang device connected to 14 AWG.",
      "inputs": {
        "boxVolume": 8,
        "wireGauge": "14",
        "conductorCount": 0,
        "deviceCount": 2,
        "internalClamps": 0,
        "groundingConductors": 0,
        "fixtureStuds": 0,
        "terminalBlocks": 0
      },
      "result": {
        "conductorFill": 0,
        "deviceFill": 8,
        "clampFill": 0,
        "groundingFill": 0,
        "studFill": 0,
        "terminalBlockFill": 0,
        "totalFill": 8,
        "boxCapacity": 8,
        "isCompliant": true,
        "fillPercentage": 100,
        "remaining": 0
      }
    },
    {
      "date": "2026-10-31",
      "id": "device12-one",
      "inventory": "Device subtotal only: one single-gang yoke connected to 12 AWG (also the largest connected gauge if 14 AWG is attached).",
      "inputs": {
        "boxVolume": 4.5,
        "wireGauge": "12",
        "conductorCount": 0,
        "deviceCount": 1,
        "internalClamps": 0,
        "groundingConductors": 0,
        "fixtureStuds": 0,
        "terminalBlocks": 0
      },
      "result": {
        "conductorFill": 0,
        "deviceFill": 4.5,
        "clampFill": 0,
        "groundingFill": 0,
        "studFill": 0,
        "terminalBlockFill": 0,
        "totalFill": 4.5,
        "boxCapacity": 4.5,
        "isCompliant": true,
        "fillPercentage": 100,
        "remaining": 0
      }
    },
    {
      "date": "2026-10-31",
      "id": "device12-two",
      "inventory": "Device subtotal only: two single-gang yokes or one wide two-gang device connected to 12 AWG.",
      "inputs": {
        "boxVolume": 9,
        "wireGauge": "12",
        "conductorCount": 0,
        "deviceCount": 2,
        "internalClamps": 0,
        "groundingConductors": 0,
        "fixtureStuds": 0,
        "terminalBlocks": 0
      },
      "result": {
        "conductorFill": 0,
        "deviceFill": 9,
        "clampFill": 0,
        "groundingFill": 0,
        "studFill": 0,
        "terminalBlockFill": 0,
        "totalFill": 9,
        "boxCapacity": 9,
        "isCompliant": true,
        "fillPercentage": 100,
        "remaining": 0
      }
    }
  ]
}
