A "full day" is stricter than a calendar day, and this is where day counts go wrong. A full day means a continuous period of 24 hours beginning at midnight and ending at the next midnight, spent entirely within a foreign country. The day you fly out of the United States and the day you fly back generally do not count, because part of each is spent in the United States or in transit. Time spent traveling over international waters does not count toward any foreign country, so a long flight or a sea voyage between two foreign points can cost a day. The upshot is that 330 full days is not the same as 330 days abroad on a calendar, and travelers who cut it close often find they are short once the partial days are removed.
The 12-month window is flexible, and choosing it well is the whole game. The period can start on any day of any month; it does not have to be a calendar year. A taxpayer picks the 12 consecutive months that contain the most days abroad, which lets someone who arrived in, say, March qualify by running the window from a date in one year to a date in the next. Because only 330 of the 365 days need to be foreign full days, the test tolerates up to 35 days back in the United States within the window, which covers ordinary home visits.
Proration links the test back to the exclusion. Qualifying under the physical presence test rarely lines up neatly with a single tax year, so the foreign earned income exclusion is prorated. The maximum exclusion for the year is multiplied by the number of qualifying days that fall within that tax year divided by the total days in the year. A person whose qualifying 12-month window overlaps a given calendar year for, say, 250 days can exclude only that fraction of the annual maximum on that year's return, with the balance of the window falling into the adjacent year's proration.
The physical presence test and the bona fide residence test answer different questions. The bona fide residence test under section 911(d)(1)(A) asks whether the person is a genuine resident of a foreign country for an uninterrupted period that includes an entire tax year, which is a facts-and-circumstances judgment about intent, ties, and permanence. The physical presence test asks only for a day count. A newcomer abroad usually leans on the physical presence test in the early years and may switch to the bona fide residence test once genuine residency is established, since the latter does not cap US visits at 35 days.