Carl
Level 15

Get your taxes done using TurboTax

The physical presence test is for the tax year. So if I'm understanding correctly, you are saying that you were physically outside the U.S. from Jan 1 - Apr 14 2017 and again from Aug 3 to Dec 31 2017. So you do not meet the requirement for the tax year for being outside of the U.S.