Model a Time-of-Use Bill With Real Interval Data
Use the actual tariff calendar and interval readings to find where the bill changes.

World Solar Hub Editorial Desk · December 3, 2026
- Correct timing$0.44
- 16:00 wrongly priced off-peak$0.32
The fictional four-interval CSV has a $0.12 difference when one reading is assigned to the wrong rate.
Read the tariff as a calendar
Write down the utility, rate code and effective dates. Mark the published peak hours, weekends, holidays and seasonal switches. Download meter data for a complete billing period and check whether timestamps mark the start or end of each interval. A one-interval shift can move energy across the tariff boundary.
Check units before assigning prices. A 2 kW average across 30 minutes is 1 kWh. A file already labeled kWh should not be multiplied by elapsed time again. Preserve fixed charges and separately record any tiers, export credits or taxes you cannot reproduce.
Rebuild one bill before presenting savings
Take an illustrative month with 120 peak kWh at $0.32 and 330 off-peak kWh at $0.16. The energy subtotal is $91.20. Add the applicable fixed charge, then compare the result with the utility’s bill. Differences may reflect billing dates, taxes or a missing tariff rider, rather than a software mistake.
Once the baseline reconciles, move a realistic amount of load. Shifting 20 kWh from peak to off-peak saves $3.20 at those rates before any changes to other charge components. That result is specific to the example.
Publish clean inputs
Keep a redacted sample of the interval file, the rate source and a summary of exceptions. EIA averages can describe a broader market. Your utility’s published tariff is the source for the time windows and prices in your own bill model.
Reconcile the rate run
| Input or observation | How to use it |
|---|---|
| Time convention | Interval start or end and local time zone |
| Calendar | Weekend, holiday and seasonal rules |
| Bill total | Energy, fixed charges and separate tariff items |
Archive one original bill alongside the calculation. If your reconstructed total is off, reconcile the largest unexplained line before estimating annual savings.
Sources and methods
Continue with What Happens to Solar Savings When Export Credits Change?.
Download a reproducible interval example
This synthetic example models four 30-minute intervals. The timestamps refer to interval starts in the same local time zone, and the readings are in kWh per interval. The first two intervals use an illustrative $0.20 import rate and the last two use $0.32. The export credit is $0.06 in all four. There is no fixed charge in this partial-period exercise.
| Start | Imported | Exported | Import rate | Net energy charge |
|---|---|---|---|---|
| 15:00 | 0.50 kWh | 0 | $0.20 | $0.10 |
| 15:30 | 0.25 kWh | 0 | $0.20 | $0.05 |
| 16:00 | 1.00 kWh | 0 | $0.32 | $0.32 |
| 16:30 | 0 | 0.50 kWh | $0.32 | −$0.03 |
Use import kWh times rate, minus export kWh times credit, on every row. The four net amounts add to $0.44. Reclassify the 16:00 reading as off-peak and the total falls by $0.12. This deliberately incorrect run shows the effect one misplaced interval can have. Restore the 16:00 row before comparing your results with the sample.
Adapt the columns to the full tariff you are modeling. Add a service date and time-zone offset when you import real records. Mark whether readings represent interval starts or ends. Include the tariff version and specify how your spreadsheet handles holidays, seasonal changes and repeated local times. Ask another reader to reproduce one billing total from the saved rate schedule and the original file.
Separate the reconciliation into import energy charges, export credits, fixed charges and exceptions. If a rate schedule includes a rule you cannot model from the available data, put the item on an exceptions line and report both the modeled subtotal and the bill total. A different reader can then tell whether a discrepancy came from the meter data, the tariff or the scope of the model.
Audit the spreadsheet before publishing the result
Check there is one row per interval for the source you are modeling. Compare the total energy in your cleaned records with the total from the original export for the same dates. Mark missing intervals and retain the original data. If a row includes duplicate readings, determine whether they represent distinct channels before removing anything. Verify the units and note any conversion on a separate sheet rather than concealing it in a rate formula.
Choose one morning, one peak interval and one billing-period boundary to verify by hand. For each check, record the service date, interval convention, import and export readings, selected rate and expected charge. Then compare it with the spreadsheet output. If the discrepancy starts at a change in rate, review the time-zone and boundary rules before editing the calculation.
Publish the instructions in the order someone should run them. Identify the source and cleaned files, the version of the tariff, and exact formulas or rate lookup rules. State how you handled missing records. The practice CSV above is synthetic. If you adapt the method to your own account, remove service addresses, meter identifiers and account references before sharing the file.
Check whether the interval model answers your next decision
If the baseline total matches the bill, preserve a copy of that run before modeling solar. Add a second sheet with the same tariff and consumption dates. Enter a production estimate for each compatible interval and show how you assigned generation to household use or export. Confirm that neither imported nor exported energy is counted twice when you total the rows.
Build the battery case on a third sheet. State eligible charge periods, when discharge is allowed, and how much usable energy carries from one interval to the next. Report the ending charge and the assumption for the starting charge. If an operational constraint is missing from the model, list it beside the resulting bill estimate so someone reviewing a battery quote can see which controls remain to be checked.
Keep a compact summary with one line per scenario. Include imports, exports, estimated utility bill and the difference from your matched baseline. For a short practice run that makes these trade-offs visible, try the Solar Bill Simulator with its sample interval CSV.
Check how reduced peaks affect billed demand
Model an applicable monthly rate, minimum demand and historical ratchet. Open the calculator.
