See if this helps.
https://turbotax.intuit.com/tax-tips/rental-property/depreciation-recapture-definition-calculation-a...