If you held the first home for two of the five years prior to 9/16, you would have up to $250,000 ($500,000) on a joint return excluded. On the second home, it's unlikely, considering closing costs that you would have a gain on the sale of that home although you may have unusual circumstances.