If you prefer the second option, book a flight that leaves in the late morning or early afternoon of Day 5. Avoid rushing by booking a flight in the afternoon, even though overnight buses from Dehradun arrive in Delhi in the early hours.