Magnetic force formula