Calculating the route when changing the date