text: "use strict";
  exports.__esModule = true;
  exports.calculateInterestRate = exports.calculateConventionalLoanPayment = exports.calculateInterestOnlyLoanPayment = void 0;
  /*  TODO Update the calculateInterestOnlyLoanPayment function. */
  function calculateInterestOnlyLoanPayment(loanTerms) {
      var payment;
      payment = loanTerms.principle * calculateInterestRate(loanTerms.interestRate);
      return 'The interest only loan payment is ' + payment.toFixed(2);
  }
  exports.calculateInterestOnlyLoanPayment = calculateInterestOnlyLoanPayment;
  /*  TODO Update the calculateConventionalLoanPayment function. */
  function calculateConventionalLoanPayment(loanTerms) {
      var interest = calculateInterestRate(loanTerms.interestRate);
      var payment;
      payment = loanTerms.principle * interest / (1 - (Math.pow(1 / (1 + interest), loanTerms.months)));
      return 'The conventional loan payment is ' + payment.toFixed(2);
  }
  exports.calculateConventionalLoanPayment = calculateConventionalLoanPayment;
  function calculateInterestRate(interestRate) {
      var interest = interestRate / 1200;
      return interest;
  }
  exports.calculateInterestRate = calculateInterestRate;
  