The magnitude of the magnetic field (B) at a distance 'r' from a long, straight wire carrying a current 'I' is given by the formula $B = \frac{\mu_0 I}{2\pi r}$ (in vacuum or air). This formula shows that B is directly proportional to the current I and inversely proportional to the distance r.