The origin of the Rydberg equation is the Bohr model's equation for the energy of a hydrogenic state:
$E_\text{B} = -\dfrac{R_{H}hc}{n^2}$
This is accurate for other hydrogenic atoms, with only one electron too (bearing in mind that $R_{X}$ is proportional to the atomic number squared).
When you get to non-hydrogenic atoms you need to model inter-electron repulsion as well. This can be done by introducing an empirical parameter $\delta$, the quantum defect: $E_\text{B} = -\dfrac{R_{X}hc}{(n-\delta_X)^2}$. For sodium the quantum defect is 1.37, allowing good approximation of the transition energies between n-states in the electronic spectrum.
I don't think there is a similar back-of-the-envelope method to calculate the differences in energies between multi-electron atom l-energy levels (like the 3s-3p). The theory of angular momentum tends to mathematical complexity. There are likely good computationally derived approximations though.