Battery type analysis formula