Text this: Analytic formula for track extrapolation in non-homogeneous magnetic field