I bought a home for $580,000 in March 2003 and lived in it until January 2007. Since then, I have lived abroad and used the home as my US residency but rented it out on occasion (one month in 2007, three months in 2008, four months in 2009 and I now have someone who wants it for two months in 2010.) I have declared the rental income as ordinary income in all years except for 2008, when we spent less than
14 days in the home, and took a rental property loss. Other years, we stayed in the house several times for more than 14 days. Now, let's say I take the two months of rent this year, and also later spend more than 14 days in the house, and then sell it in July for $880,000. Is that $300,000 gain exempt from capital gains taxes? If not, how long do I have to move into the house and must I do it permanently, as in move back to the United States? Or can I just keep it vacant?
Also, how is the capital gain computed? Do I factor in rental income? Repairs?