A source of power(from a generator,battery,etc...) is used to power a system of any kind. We can calculate the energy used via this formula $E$ = $IV$ x $t$ ?
For example, a battery that is connected to a conductor, that conductor converts electrical energy to heat.
$E_B$ = $P$ x $t$
E - energy used from the batter. t - time the battery is connected to the circuit and current flows.
Is this the only way to model or analyze the energy transferred?