예제 #1
0
        private decimal GeneralEquation(int period, decimal payment, decimal initialPeriods, decimal fractions, decimal rate)
        {
            decimal retval = 0;

            for (int x = 0; x < period; x++)
            {
                retval += payment / ((1.0M + fractions * rate) * DecimalUtils.Pow(1 + rate, initialPeriods + x));
            }
            return(retval);
        }
예제 #2
0
        private decimal DefaultPaymentCalc()
        {
            decimal payment = (LoanAmount) * (DecimalUtils.Pow((1 + RatePerPayment), LoanTerm) * InterestRate) / (12 * (DecimalUtils.Pow((1 + RatePerPayment), LoanTerm) - 1));

            return(payment);
        }