Part-year exclusion. If you qualify under either the bona fide residence test or the physical presence test for only part of the year, you must adjust the maximum limit based on the number of qualifying days in the year. The number of qualifying days is the number of days in the year within the period on which you both:

1. Have your tax home in a foreign country, and
2. Meet either the bona fide residence test or the physical presence test.

For this purpose, you can count as qualifying days all days within a period of 12 consecutive months once you are physically present and have your tax home in a foreign country for 330 full days. To figure your maximum exclusion, multiply the maximum excludable amount for the year by the number of your qualifying days in the year, and then divide the result by the number of days in the year.