Magnetic Quantum Number Formula