Question: what is the formula to calculate q?
Answer: The equation for calculating heat energy is q=mCpΔT, where q is the heat variable, m is the mass of the object, Cp is the specific heat constant and ΔT is the temperature change.