I believe you can fly domestically anytime up to 36 weeks without a letter from your doctor, I think international could be 32 or 34 weeks, but each airline may have different rules. Maybe have a look on their websites, or give them a call to find out for sure.