Investors & landlords

Does this apply to capital gains from sale of rental property?  The property was purchased in 2012 and sold in 2020.