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.