To calculate what the magnetic field near a conductor is like, you can use Ampère's Law. The visual will help you to understand it.
Licencia Creative Commons Reconocimiento-No Comercial-Compartir Igual 3.0 España Ministerio de Educación, Cultura y Deporte