Bms connection , lithium ion battery calculations