Computation of Magnetic Properties