Beispiel #1
0
        public double GetStraightLineAmount(DepreciationCalculatorInputModel inputModel)
        {
            var straightLineAmountPerMonth = CalculateStraightLineAmountPerMonth(inputModel);
            var monthsOwned = CalculateMonthsOwned(inputModel);

            return(CalculateDepreciationAmount(straightLineAmountPerMonth, monthsOwned));
        }
Beispiel #2
0
        private int CalculateMonthsOwned(DepreciationCalculatorInputModel inputModel)
        {
            var adjustFinanicalYearEnd = AdjustFinanicalYearEnd(inputModel.FinancialYearEnd);

            return(GetMonthsOwnedForCurrentFinancialYear(adjustFinanicalYearEnd, inputModel.PurchaseDate, inputModel.UsefulLifeInYears));
        }
Beispiel #3
0
        private double CalculateStraightLineAmountPerMonth(DepreciationCalculatorInputModel inputModel)
        {
            var maxStraightLineAmountPerMonth = (inputModel.AssetCost - inputModel.SalvageValue) / inputModel.UsefulLifeInYears / MonthsInYear;

            return(maxStraightLineAmountPerMonth);
        }