Investors & landlords

your understanding of the proration is incorrect.  as the residence was your primary home for at least 2 of the past 5 years, you are eligible for the entire exclusion.  Partial or full rental doesn't matter. 

 

your only issue is the depreciation recapture.