Magnetic field due to a toroid inside its turns is given by (n is thenumber of turns per unit length of the toroid and I is the current in the loop)