Calculation of Magnetic Force on a Moving Object