Maximum allowable depreciation?

I straight-line depreciate a rental prop on standard 27.5 year schedule. If I hold that property just 15 years, the maximum allowable depreciation subject to recapture covers just those years I owned (and depreciated) it, right? Or will IRS calculate recapture as if I had had the entire 27.5 years depreciation, even though I didn't even keep property that long?