Next Thursday is Thanksgiving, which also happens to be one of the busiest times of the year for travel. Millions of people flying from where they live back to their hometowns to enjoy some turkey with their families. And if for some reason you still haven't booked your ticket back for the holiday, here's some advice on when to do so.

Business Insider worked with Google to analyze data to determine when the best, and worst times, are for traveling home for Thanksgiving. Here were their results:

Driving to Thanksgiving

Best time: 6 a.m. on Sunday

Worst time: 3 p.m. on Wednesday

Driving from Thanksgiving

Best time: 6 a.m. on Friday

Worst time: 4 p.m. on Saturday

Flying to Thanksgiving

Best time: Day of Thanksgiving! Everyone's already traveled, so there will be far shorter waits.

Worst time: Day before Thanksgiving. That's literally when everybody is going to the airport.

Flying from Thanksgiving

Best time: Monday after Thanksgiving. Most people head home between Friday and Sunday, so Monday will be far less crowded at airports.

Worst time: Sunday after Thanksgiving. Besides the day before Thanksgiving, the Sunday after the holiday is perhaps the worst day of the year to fly. Again, that's when everyone flies home after spending a weekend with their family and so they can go back to work on Monday.

Alternatively, just offer to host Thanksgiving! Although the stress and hassle of dealing with airport lines or terrible traffic may be better than making sure your turkey's perfectly cooked.

(h/t Business Insider)