Energy storage system formulation