Battery storage capacity calculation