Voltage formula of series battery pack