It can be shown the magnetic field in a long narrow tube that is 5 meters is uniform and given by $$B=1.26 \times 10^{-6} N I$$
where N is number of wire loops/meter. Assuming the solenoid is aligned along the Earth's magnetic field,how much current is needed to cancel the Earth's field? Earth's magnetic field is $10^{-4}$ Tesla
this is how i did it N=1000/5=200 I=(10^-4)/(1.26E-6)(200) I=0.396 A
Is that all there is to it? or am I missing another step