Linear functions and depreciation