In square-current configurations, first calculate the field due to one wire using
\[
B=\frac{\mu_0 I}{2\pi r},
\]
then use symmetry and the right-hand thumb rule to determine the direction of the resultant magnetic field. The centre-to-corner distance of a square is always \(\frac{a}{\sqrt2}\).