The heat generated in conductor (resistance) while the flow of current is directly proportional to the square of the current, the resistance of the conductor and time for which the current flows.
H = I2 R t/J calories.
Where J is mechanical equivalent of heat is equal to 4.2 Joules. In electricity H = 0.24 I2 R t calories.