On overcharging a battery