(By the way, the total of my income and capital gains is less than the maximum Foreign Earned Income Exclusion, so the exact number does not affect the outcome much since the taxes owed will be zero). (money.stackexchange.com)
See the IRS foreign earned income exclusion test for further information on this exclusion. (sevencorners.com)
Line 14 of the IRS Foreign Earned Income Exclusion form (2555) asks that one lists the days one was present in the US during the tax year. (money.stackexchange.com)