then the work done by the battery is