1. Statutory Foundation & The 330-Day Rule
Under Internal Revenue Code (IRC) ยง 911, qualified individuals who live and work abroad can exclude a substantial portion of their foreign earned income from US federal taxation, alongside the Foreign Housing Exclusion.
+-------------------------------------------------------------+
| IRC ยง 911 DUAL-GATE ELIGIBILITY |
+------------------------------+------------------------------+
|
+---------------------+---------------------+
| |
v v
[GATE 1: TAX HOME TEST] [GATE 2: PRESENCE TEST]
Must have a foreign tax home. Must satisfy EITHER:
No US abode under ยง 911(d)(3). A) Bona Fide Residence (Full Year)
Economic nexus must be foreign. B) Physical Presence (330 Full Days)
2. The Strict "Full Day" Rule (Midnight-to-Midnight)
The IRS defines a full day as a continuous period of 24 hours beginning and ending at midnight (Treas. Reg. ยง 1.911-2(d)(2)):
Edge-Case Day Calculation Protocols:
- International Airspace: Travel over international waters does not count as physical presence in a foreign country.
- Transit Through the United States: If a flight lands on US soil at 11:55 PM, that entire 24-hour day is forfeited from the 330-day count.
- Foreign Port to Foreign Port: Flying directly between two foreign nations (e.g. Bangkok to Lisbon) counts toward foreign presence provided the flight does not spend more than 24 hours over international waters.
| Activity / Scenario | Counts Toward 330 Days? | Statutory Authority |
|---|---|---|
| In foreign country 00:00 to 23:59 | YES (1 Full Day) | Treas. Reg. ยง 1.911-2(d) |
| Depart foreign country 10:00 AM, land US 8:00 PM | NO (US presence) | Rev. Rul. 58-233 |
| Direct flight between 2 foreign nations (<24h) | YES | Treas. Reg. ยง 1.911-2(d)(2) |
| Cruise ship in international waters | NO | Bebb v. Commissioner |
| US Military base on foreign soil | YES (for PPT only) | IRC ยง 911(d)(1) |
3. The 12-Month Rolling Window Selection Algorithm
You are not required to align the 12-month period with the calendar year. You may choose any 365-day (or 366-day leap year) consecutive span that captures at least 330 foreign days.
def find_optimal_feie_window(travel_days_map):
"""
Evaluates all sliding 365-day windows in a tax year
to maximize qualifying exclusion days and foreign presence count.
"""
# Sliding window search implementation
# Returns (best_start_date, best_end_date, total_foreign_days)
pass
4. IRS Form 2555 Audit Checklist
Before submitting IRS Form 2555 with Form 1040, audit each line item against this verification standard:
- Part I (General Information): Foreign address matches lease or local registration (e.g., Thailand Tabien Baan or Spanish Empadronamiento).
- Part II or III: Validated selection between Bona Fide Residence vs. Physical Presence.
- Part IV (Foreign Earned Income): Ensure only active earned income (wages, self-employment professional fees) is claimed. Dividends, capital gains, and rental income are strictly ineligible.
- Part VI (Housing Exclusion): Verified that expenses meet the base housing amount and do not exceed the IRS foreign country housing limit for your designated metropolitan area.