Voltage and current of chemical batteries