Calculate the magnitude of the magnetic field at point P as shown in the figure