The U.S. Constitution requires that presidents be at least 35 years old and natural born citizens. The third requirement is that they must have been “fourteen Years a Resident within the United States.”
So how about amabassadors to China? Or supreme allied commanders away for three years to direct military invasions? Or Herbert Hoover, who returned in 1919 from years of directing wartime food relief in Europe?
Perhaps the fourteen years residency is a lifetime accumulation and not just the most recent fourteen years.