The formula for heat from heat capacity varies depending on what units are given for your C. If your C is in JK-1g-1, then the formula is q = mC?T, where m is the mass of your compound. However, if you C is in units of JK-1mol-1, then the formula is q = nC?T, where n is the number of moles of your compound.