Terminal voltage of a battery