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); }
public static double CalculatePrincipal(IBankingModel bm) { Principal = bm.LoanAmount - InterestRate; return(Principal); }