Calculating Magnetic Force