A business that puts solar panels and a battery behind its own meter is not selling electricity. It is cutting a bill, and most of that bill is often demand charges, not kWh. This Excel workbook answers the questions a CFO, an energy manager or an installer's customer asks before signing: how much does the bill fall, which part comes from energy and which from demand charges, does the battery earn its keep on top of the PV, and is it better to buy for cash, borrow, lease or sign a PPA?
HOUR BY HOUR, NOT ANNUAL AVERAGES
Each month has a weekday and a weekend day of 24 hours, 576 representative hours in all, weighted by the real number of weekdays and weekend days in the first operating year. In every hour the model matches site load, PV output after inverter clipping and the battery, exports surplus up to the export limit and curtails the rest. A monthly-total shortcut is shown next to it: in the worked example it overstates the PV used on site by 12.4 percent. You paste the average weekday and weekend hour from interval data and the monthly hour-by-hour PV shape from PVWatts or PVGIS; the model scales both to your annual kWh and your yield.
DEMAND CHARGES PRICED THE WAY THEY ARE BILLED
TOU energy prices by period and season, a facility demand charge on the month's highest import with a ratchet, a separate peak-window demand charge, a fixed charge, an interval uplift because bills meter 15 or 30 minutes, and exports credited at an export tariff or by net metering. Six configurations are billed month by month: before the project, PV only and PV with the battery, each in its equipment states.
A BATTERY THAT FOLLOWS CLEAR RULES
The battery stores PV surplus, holds a reserve for peak shaving and uses the energy above the reserve for TOU arbitrage or self-consumption. It may charge from the grid in off-peak hours, but never above the month's shaving target, and a check proves in every month that grid charging did not create a new peak. Capacity fades every year and the battery is replaced, or augmented, when it falls below your threshold. The same project without the battery is costed alongside, so the workbook tells you in dollars whether the battery adds value, and a sensitivity table shows the demand charge and battery price at which it starts or stops paying.
FOUR WAYS TO PAY, AFTER TAX
Cash purchase with an investment tax credit, a grant and a depreciation schedule; a loan; a lease with an escalator and a buyout; and a PPA priced per kWh of PV delivered plus a battery service fee. For each: upfront cash, year-1 cash flow, NPV, IRR, payback and a cumulative cash flow chart. O&M, insurance, inverter replacement, battery replacement and decommissioning are all in the cash flows. Base, Downside and Upside scenarios run from one switch, and three live sensitivity tables cover capex and tariffs, discount rate and price escalation, and demand charges against battery cost.
THE WORKED EXAMPLE
A fictional refrigerated distribution warehouse uses 2.4 GWh a year with a 474 kW summer peak. With 800 kWp of PV and a 500 kWh / 250 kW battery, $1.50m installed, the year-1 bill falls from $447,686 to $236,142, 47 percent, and the peak from 474 kW to 274 kW. The cash purchase has an NPV of $708k, an IRR of 13.5 percent and a 6.9-year payback; the loan is the best option at $837k; the battery adds $105k of NPV over PV alone, three quarters of it from peak shaving. Without grid charging the same battery would lose $78k, and the model shows why.
HOW IT DIFFERS FROM OUR SOLAR PROJECT FINANCE MODEL
Balancewright also sells a Renewable Energy Project Finance Model (Solar PV + BESS). That model is for a utility-scale plant selling power under a PPA and at merchant prices, with construction funding and debt sculpted on DSCR. This one is for the business that uses the power behind its own meter. The two files share no tabs and serve different buyers.
WHAT IS INSIDE
Eleven tabs: Read Me, Dashboard, Inputs, Profiles, Hourly, Bills, Cash Flows, Financing, Sensitivity, Report and Checks. Blue inputs, black formulas, green links. No macros, no add-ins, no Data Tables, no external links, no locked cells, no passwords. The Report tab prints a one-page summary with five automatic points for the decision. Twenty-six integrity checks must all read PASS. Thirty cases (every scenario, battery strategy and grid charging setting, plus twelve stress cases) were recalculated with zero errors and re-computed independently in Python, which simulates every calendar hour of the year instead of representative days; the file was also tested in Microsoft Excel.
Honest limitations: representative days rather than 8,760 measured hours, rule-based dispatch without forecasting, one tariff for the whole period, and simplified tax. The years between three simulated equipment states are interpolated; for the example the error against a year-by-year simulation is under 0.7 percent in any year.
The supplementary PDF is the user guide: it explains each tab and the dispatch rules, the worked example, the battery decision and the honest limitations, with screenshots.
The content was drafted with the help of Claude (an AI assistant) and reviewed by the author; there are no AI-generated images. Prices, costs and incentive rates are editable examples, not market data, and the example site is fictional. This is a planning tool, not investment, engineering or tax advice.
Got a question about the product? Email us at support@flevy.com or ask the author directly by using the "Ask the Author a Question" form. If you cannot view the preview above this document description, go here to view the large preview instead.
Source: Best Practices in Solar Energy, Integrated Financial Model Excel: C&I Solar PV + Battery Storage Feasibility Model Excel (XLSX) Spreadsheet, Paweł Dudek, Balancewright