public void BorrowMoney(float months, float amount) { float interest = CalculateBorrowInterest(months, amount); Debt d = Debt.Create(this, amount, interest / 12.0f, (int)months); Debts.Add(d); Cash += amount; }
public static Debt Create(Bank debtor, float amount, float interest, int months) { Debt d = new Debt(); d.Debtor = debtor; d.Principal = amount; d.Interest = interest; d.Months = months; return d; }
public static Debt Create(Bank debtor, float amount, float interest, int months) { Debt d = new Debt(); d.Debtor = debtor; d.Principal = amount; d.Interest = interest; d.Months = months; return(d); }