Interval from vector routine