Text this: using collocation method for solving differential equations with time lag