Er... I'm going to nitpick here a bit since I see a few problems...
1. We all agree that the original question was VAGUE.
2. I have no idea what formula Locrian is quoting.
3. At the SIMPLEST level, if we adopt the Bohr model (which we all know is not correct, but is damn accurate for H atom, so-so for slightly heavier atoms, and completely whacky for very heavy atoms), then one can find the "energy" of the electronic state from usual sources.
http://hyperphysics.phy-astr.gsu.edu/hbase/hyde.html
4. We need to be clear about one thing here. The principle quantum number,
n, typically dictates the dominant energy state of the atom. The various orbitals (the
s,p,d, etc) that are within each
n are DEGENERATE states. By that we mean they have the identical energy state within each
n. It is only when the degeneracy is REMOVED, either via spin-orbit coupling, application of external fields, etc., that they will have separate energy states.
Zz.