How To Calculate The Magnetic Moment