Energy storage capacity measurement principle