Tax Year Prior to 2020: How do I figure out how much depreciation to recapture?

I had a rental property from 2013 that I sold in March of 2015. Each year I had a carryover loss. Now I have to recapture depreciation. Since I had carryover, doesn't that mean I didn't receive the full tax credit for the depreciation each of those years? How do I calculate the depreciation to recapture?