Cell voltage measurement and calculations