When selling a rental property with a contract/ballon payment, how do you recapture the depreciation taken over the years. I use TT Home & Biz

If I sell this yr and the ballon pt is 3 yrs from now, where/when do I recapture the depreciation?