A quantitative Dirichlet-Jordan type theorem for orthogonal polynomial expansions