It is easy to get the right number but be off by or more orders of magnitude. Be sure that all of your numbers are in the same base unit before performing the necessary multiplication and devision. The speed of light is given in m/s and Planck's constant is given in eV/Hz.