Heat is the amount of energy flowing from one body of matter to another spontaneously due to their temperature difference . The specific heat capacity, often called simply specific heat, is the heat capacity per unit mass of a material.
Q is the total energy,m is the mass, c is the specific heat.
c = Q / m x change in Temperature
Q = c x m x change in Temperature
first determine the total amount of energy being put into the system. measure the mass of the object you are testing/calculating, measure the change in temperature of the object. When you get into ambient lost heat, these equations of systems get much more complicated, but for a simple experiment just measure the temperature of the object is enough, Finally Calculated .