Determining magnetic flux density of a closely wound toroidal coil
For r&lt;(b-a), there is no current therefore B=0 (as you already mentioned.)

For r>(b+a), you have to sum up the currents according to their direction. The number of currents/wires pointing into the plot plane is equal to the number of currents pointing out of the surface. The total current is therfore zero.