refactoring

fix user and refactor depreciation calculator for various models of
depreciation