Start with the tariff and interval data. Demand charges depend on how the tariff measures peak demand, and the highest-load events can tell you more about the battery requirement than total electricity consumption.

Find the peaks the tariff bills for

Identify the relevant billing windows, measurement interval and whether demand is billed in kW or kVA. Match those rules to interval data from the site. Look for seasonal patterns and events such as equipment start-up, production shifts or solar output dropping late in the day.

Size power and energy separately

As an illustrative example, shaving 150 kW for two hours requires 300 kWh of discharge at the load. The design also has to allow for usable battery capacity, losses and reserve. If the site has several peaks before it can recharge, model them together.

Test the dispatch against real operating days

Replay the proposed control strategy against historical load. Check whether the battery can sustain the site import limit, whether recharging creates another peak and how backup reserves affect the result. Compare the resulting billed demand month by month using the actual tariff.