The request
{
"name": "wever_energy-bill-check",
"arguments": {
"tariff": {
"name": "Residential R-1",
"rates": [
{
"id": "r1",
"name": "customer charge",
"unit": "month",
"rate": 12
},
{
"id": "r2",
"name": "energy, first 500 kWh",
"unit": "kWh",
"rate": 0.11,
"to_kwh": 500
},
{
"id": "r3",
"name": "energy, above 500 kWh",
"unit": "kWh",
"rate": 0.14,
"from_kwh": 500
}
]
},
"usage": {
"kwh": 812,
"meter_start": 40210,
"meter_end": 41022
},
"bill": {
"lines": [
{
"id": "b1",
"description": "Customer charge",
"rate_id": "r1",
"amount": 12
},
{
"id": "b2",
"description": "Energy, first 500 kWh",
"rate_id": "r2",
"amount": 55
},
{
"id": "b3",
"description": "Energy, above 500 kWh",
"rate_id": "r3",
"quantity": 412,
"rate": 0.14,
"amount": 57.68
},
{
"id": "b4",
"description": "Service fee",
"rate_id": "r9",
"amount": 4.95
}
],
"total": 129.63,
"currency": "USD"
}
}
}What the report returns
Verdict: energy_bill_errors.
| Finding, charge not in tariff | 1 line charges a rate the tariff does not list: b4 (Service fee) for 4.95 USD. |
|---|
| Finding, line overcharged | 1 line charges more than the tariff rate times the recorded usage: b3 (Energy, above 500 kWh) billed 57.68 USD where 312 at 0.14 is 43.68 USD. |
|---|
| Fix, charge not in tariff | Remove each charge the tariff does not list, or name the tariff rate it applies. |
|---|
| Fix, line overcharged | Rebill each line at the tariff rate times the recorded usage. |
|---|
The bill holds errors against its tariff and usage: charge not in tariff and line overcharged, 18.95 USD above the recomputed 110.68 USD.
A household on a tiered residential tariff used 812 kWh, and the meter reads agree. The first 500 kWh and the customer charge are billed at the tariff rate. The second tier is billed on 412 kWh where the usage puts 312 kWh above the first tier, and a service fee appears that the tariff never lists. The report recomputes the bill at 110.68 USD against the 129.63 USD billed, and states that correcting both lines moves the verdict to energy_bill_clean.