Formula 1:
B (inversely proportional) (I/r) ; where B= Strength of Magnetic Field, I=current passed through conductor and r=distance from conductor.
Formula 2:
B=(µI/2πr) where B= Strength of Magnetic Field, r= distance from conductor, I=current passed through conductor and µ= permeability of medium
I am sorry. You have to start with Biot-Savart Law ,and it includes vector algebra.the link is given below