If component vx of the velocity vector is along the magnetic field, and remain constant, the charge particle will follow a helical trajectory; as shown in fig.
If the velocity component vy is perpendicular to the magnetic field B, the magnetic force acts like a centripetal force qvy B.


Since tangent velocity vy = rω

Time taken for one revolution, \(T=\frac{2\pi}{\omega}=\frac{2\pi m}{qB}\)
and the distance moved along the magnetic field in the helical path is
\(x=v_x.\,T=v_x.\frac{2\pi m}{qB}\)