Battery planning
Why can a 22 kW converter fall short on a 50 kWh evening peak-shaving job?
Two shopping centres each use 72 kWh between 7 and 8 pm. To hold grid imports at 50 kW, one needs 22 kW from its battery. The other needs 38 kW for a quarter of an hour. Reserving energy for a power cut changes how much either site can use for peak shaving.

Locate the meter and identify the time interval
Mark the battery connection point, solar generation meter and grid import meter on the single-line diagram. If historical readings represent whole-building demand, subtract simultaneous AC solar output to obtain net imports before the battery acts. If they already represent net imports, use them directly. Keep the original resolution, check whether timestamps denote interval starts or ends, and obtain samples covering summer, winter, trading days and holidays.[1]
The 50 kW target below is an active-power import limit chosen by the owner for a design exercise. To assess the electricity bill, check the actual tariff, the demand averaging period and its unit. For example, CLP’s sample bulk-tariff bill records maximum demand in kVA. Comparing these charges with a kW demand profile requires apparent-power data or the corresponding power factor.[7]
Find the AC energy required over four trading hours
Assume no solar output from 18:00 to 22:00 and initially hold demand constant within each hour. The battery supplies the portion above the target. Required discharge power is the greater of zero and original grid import minus the target. Multiply by interval duration to obtain delivered energy.[1]
| Time | Original import power | Battery AC energy |
|---|---|---|
| 18:00 to 19:00 | 58 kW | 8 kWh |
| 19:00 to 20:00 | 72 kW | 22 kWh |
| 20:00 to 21:00 | 66 kW | 16 kWh |
| 21:00 to 22:00 | 54 kW | 4 kWh |
The four one-hour intervals require 50 kWh at the AC delivery point. With a flat profile within each interval, the highest output is 22 kW for a full hour. If the original input consists of hourly averages, inspect the busiest hour before putting a converter rating in the procurement specification.

Zoom in on the four intervals between 19:00 and 20:00
Keep the same 72 kW hourly average. Assume the property team wants to keep grid imports at 50 kW in each 15-minute interval and that load is constant within each interval. At the first shopping centre the four readings are all 72 kW. At the second, plant starting up produces readings of 56, 88, 72 and 72 kW. Both sites use the same energy that hour, but their converter duties differ. Longer averaging windows smooth short peaks.[5]
| Interval start | Battery output, flat load | Battery output, short peak |
|---|---|---|
| 19:00 | 22 kW | 6 kW |
| 19:15 | 22 kW | 38 kW |
| 19:30 | 22 kW | 22 kW |
| 19:45 | 22 kW | 22 kW |
The short-peak profile needs (6 + 38 + 22 + 22) × 0.25 = 22 kWh, the same energy as the flat profile. From 19:15 to 19:30 the battery and converter must deliver 38 kW at the AC side for 15 minutes. A 22 kW limit leaves 88 − 22 = 66 kW of grid import. If a quote states only “38 kW peak”, ask for the permitted duration and the output available at the site temperature.[2][5]

Translate 50 kWh of AC delivery into battery capacity
Assume a new battery starts at 90% state of charge (SOC), can discharge to 10% in normal operation, and delivers stored energy to the AC load at 95% effective one-way efficiency. Its usable window covers 80% of nominal DC capacity. Required nominal capacity is 50 ÷ (0.80 × 0.95) ≈ 65.8 kWh. This initial estimate excludes ageing and auxiliary consumption. Actual discharge limits must also be checked. If a supplier quotes usable AC energy delivered across the same window, compare that directly with 50 kWh.[1][2]
Check whether the battery can recharge before the next evening. At 95% one-way charging efficiency from the AC charge point, replacing the delivered 50 kWh requires about 50 ÷ (0.95 × 0.95) = 55.4 kWh at that point. Check available solar surplus and the charging power limit at each interval. The calculator below compares the flat and short-peak profiles using the 90% to 10% window. The backup reserve is calculated separately.[2]
How much energy stays available for an outage?
Keep the same 65.8 kWh battery, raise the normal dispatch floor to 30% and assume the manufacturer allows discharge to 10% during an outage. Normal operation can now deliver 65.8 × (0.90 − 0.30) × 0.95 ≈ 37.5 kWh. To keep the full 50 kWh evening duty above this higher floor would require 50 ÷ (0.60 × 0.95) ≈ 87.72 kWh of nominal capacity, or at least 87.8 kWh to the next tenth.[2][6]
If an outage starts just as SOC reaches 30%, the reserved 30% to 10% band holds 65.8 × 0.20 = 13.16 kWh of DC energy. At 95% one-way discharge efficiency, about 12.5 kWh reaches the AC load. At a steady critical load of 5 kW that gives about 2.5 hours. The example excludes additional auxiliary consumption and assumes the battery and converter can sustain the load and its starting demand, and that the system can safely disconnect from the grid and transfer the specified circuits. Allocate each portion of the battery once. Ask the supplier for the backup output rating, transfer time and supported starting loads.[3][6]
Write an acceptance brief the supplier can run against
Give the designer the original load and PV data, metering diagram, the 50 kW target with its control interval, the critical-load schedule and the maximum acceptable interruption. Ask the supplier to state the AC output and duration available from the battery and converter under specified site conditions, usable energy at the end of the agreed service period, and separate normal and reserve SOC limits. Ask both bidders to return interval grid import, battery output and SOC from the same demand file.[1][2][6]
For a future installation, retain the existing inverter model, firmware, single-line diagram and meter locations to compare AC and DC connection options. Identify delivery and maintenance access, floor loading, ventilation and fire provisions. Code 26V of Hong Kong EMSD’s 2025 wiring code specifically addresses lithium-ion battery energy storage. A design operating in parallel with the grid must meet the power company’s requirements. Have the registered electrical contractor confirm the provisions applicable to the site and proposed energisation date.[3][4]
Sources
- System Advisor Model · Behind-the-meter battery dispatch
See Charge Limits and Priority, Peak shaving, and Input grid power targets for SOC limits and interval import targets.
- System Advisor Model · Battery storage behind the meter
See Battery Bank Sizing and Power Converters for power, AC and DC units, and charge and discharge conversion efficiencies.
- EMSD · Design considerations for solar photovoltaic systems
Sections 2.3(3) and 2.8 cover anti-islanding on loss of grid supply, battery conditions and fire provisions.
- EMSD · 2025 Code of Practice for the Electricity (Wiring) Regulations
The official page includes the code and edition transition arrangements. See Code 26V(2) and (5) to (8) on application types, protection, installation, testing and fire safety.
- NREL and Berkeley Lab · Solar and storage for commercial demand charges
The 2017 report, page 24, explains how longer averaging intervals smooth short peaks. The study concerns US commercial tariffs.
- System Advisor Model · Grid outage and backup dispatch
Battery State of Charge and Autonomy Calculations distinguish normal and outage SOC limits and size autonomy against critical loads.
- CLP · How to read a bulk-tariff electricity bill
Items 3 and 6 show on-peak and off-peak maximum demand in kVA in the example.