Magnetic field due to a complete circular wire loop carrying a current I at the centre is 2rμ0I
Here, the straight portions of the wire do not contribute because the point P is along them. The field at P is due to 43 th of the loop of radius r. Thus B=43(2rμ0I) =43×2×314×10−74π×10−7×32 =4.8×10−6T