At how many weeks are you no longer allowed to fly?

Would like to travel home to visit family..