calculate depreciation with residual value - Search