A shortcut is: 1240nm in vacuum for 1eV.
In which state is your sodium? For a gas, atoms are separated, and the ionization energy applies. For a solid, the minimum energy is called the work function.
In the case of a solid, only a maximum photoelectron energy can be computed, because the electron can originate from an energy level deeper than the Fermi level.
There could be some subtleties with solids, for instance if the electrons of proper energy have non-zero momentum. They might need the help of a phonon then, and the process gets less efficient, meaning that the material needs more thickness to absorb light of a given energy. Or more generally, electrons have some energy-momentum relation in the metal, an other one in vacuum, photons have still an other one, and conserving the energy and the momentum in the interaction needs some angle conditions or the contribution of a phonon. Typical books exercises neglect this.