Investors & landlords

Depreciation on the 1st year (partial year rental) and depreciation on the last year (property sold) should be prorated based on days used for rental, correct?