Calculation of book value and depreciation