When p calories of heat is given to a body