In class today we were given the situation of a single DC current carrying wire was trying to deflect a compass needle. We were told that the magnetic field of the earth was $5\times10^{-5}T$ and we had to rite down a formula describing how far we must be from this wire in order to be sure it wouldsignificantly deflect a compass needle from magnetic north.
Does this have anything to do with the formula
$f = \frac{\mu_oI_1I_2}{2\pi d}$ or am i parking up the wrong tree, any help where to start would be great.