what formula for figuring the change in heat energy from specific heats of various substances?

q = mass x specific heat x delta T.