Rental converted to primary in 2015 and sold in 2021

I'm trying to figure out how to make this work with TurboTax.  Rental property was purchased in 2013 and rented until 2015 when it was converted to my primary residence.  I left the property in TurboTax as a rental with no expenses/income from 2015 to 2020 as a placeholder to carry forward losses/depreciation until I was able to claim them last year.  I sold the home this year and now need to recapture the depreciation taken from 2013-2015 as well as 2/7ths of the gain from the sale.  What's the best way to approach this issue?