Source: https://www.biggerpockets.com/forums/51/topics/317138-capital-gains-on-sale-of-primary-residence-converted-to-rental