For this purpose, foreign earned income is income you receive for services you perform in a foreign country in a period during which your tax home is in a foreign country and you meet either the bona fide residence test or the physical presence test.