Quantity of Heat = Mass x Heat Capacity x Temperature Change
This may be shortened to:
q = mcΔT
where:
q = Quantity of heat in Joules (J) m = Mass of the substance in grams (g) c = Specific Heat Capacity (Jg-1) ΔT = Change in Temperature (Δ = This symbol is "delta", which is Greek for "change")