示例#1
0
        public static double CalculateInterestRate(IBankingModel bm)
        {
            switch (bm.IsVariable)
            {
            case true:
                InterestRate = (EURIBOR + FixedRateE) * bm.LoanAmount;
                break;

            case false:
                InterestRate = bm.InterestPercent * bm.LoanAmount;
                break;
            }

            return(InterestRate);
        }
示例#2
0
 public static double CalculatePrincipal(IBankingModel bm)
 {
     Principal = bm.LoanAmount - InterestRate;
     return(Principal);
 }