Li-ion battery calibration