Battery potential formula