Methods for routing with time windows