There is no formula for the molar heat of solution.
You have to do an experiment to determine the heat of solution of a substance.
Experimentally, you dissolve a known amount of the substance in a given mass of the solvent and measure the temperature change.
Then you use the specific heat of the solution and the number of moles of the solute to calculate the molar heat of solution.