find the heat loss in the circuit during the process of charging.