calculate building depreciation