In order to have the sale excluded, you would have had to live in the house for 2 out of the last 5 years. Since you rented it out the last 12 years, it does not qualify for the home sale exclusion.
Also, since you used it as a rental for the last 12 years, the house would have been depreciated during that time, now that it is sold, you have to recapture the depreciation. Basically, that means that the depreciation deduction you received over the 12 years is added back to your income (or in a way, drastically lowered your $415k purchase price).
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"