added function that calculates route that uses the most time