I sold an apartment owned for 10 years. The first 5 was rented and the last 5 was vacant. To calculate the cost basis, do I need to account 5 or 10 years depreciation?