use the same time equation for arcs and lines