Let's consider the following diagram:

The formula to calculate the magnetic field (B1) due to wire 1 is given by
B1=4πRμ0i⊗...(1)
The formula to calculate the magnetic field (B2) due to wire 2 is given by
B2=4Rμ0i⊙...(2)
And, the formula to calculate the magnetic field (B3) due to wire 3 is given by
B3=4πRμ0i⊗...(3)
Hence, the net magnetic field at P can be written as
B=====B1+B2+B34πRμ0i⊗+4Rμ0i⊙+4πRμ0i⊗2πRμ0i⊗+4Rμ0i⊙−2πRμ0i⊙+4Rμ0i⊙4Rμ0i[1−π2]⊙