make the travel delay dynamically calculated