Revise GCSE Physics

Question: Do we use a different equation for an object that is cooling?

No. If the temperature rises then the Heat energy calculated is being transferred into the object. If the temperature is decreasing then the Heat energy calculated is that which is being lost by the object.