Banner Bank Cd Rates Calculator

Banner Bank CD Rates Calculator

This calculator helps you estimate the potential earnings on a Certificate of Deposit (CD) with Banner Bank, considering various terms and APYs. A CD is a savings product that holds a fixed amount of money for a fixed period of time, in exchange for a fixed interest rate. CDs can be a good option if you want to earn a guaranteed return on your savings and don't need immediate access to the funds.

function calculateCdEarnings() { var initialDeposit = parseFloat(document.getElementById("initialDeposit").value); var termInMonths = parseInt(document.getElementById("termInMonths").value); var annualPercentageYield = parseFloat(document.getElementById("annualPercentageYield").value); var resultDiv = document.getElementById("result"); resultDiv.innerHTML = ""; // Clear previous results if (isNaN(initialDeposit) || isNaN(termInMonths) || isNaN(annualPercentageYield)) { resultDiv.innerHTML = "Please enter valid numbers for all fields."; return; } if (initialDeposit <= 0 || termInMonths <= 0 || annualPercentageYield < 0) { resultDiv.innerHTML = "Please enter positive values for deposit and term, and a non-negative APY."; return; } // Convert APY to a monthly rate for calculation var monthlyInterestRate = (annualPercentageYield / 100) / 12; // Calculate the final amount using compound interest formula: A = P(1 + r/n)^(nt) // For monthly compounding, n=12. Here we're calculating for the full term. var numberOfCompoundingPeriods = termInMonths; var finalAmount = initialDeposit * Math.pow((1 + monthlyInterestRate), numberOfCompoundingPeriods); var totalInterestEarned = finalAmount – initialDeposit; resultDiv.innerHTML = "

Estimated Earnings

" + "Initial Deposit: $" + initialDeposit.toFixed(2) + "" + "CD Term: " + termInMonths + " months" + "APY: " + annualPercentageYield.toFixed(2) + "%" + "Estimated Total Amount at Maturity: $" + finalAmount.toFixed(2) + "" + "Estimated Interest Earned: $" + totalInterestEarned.toFixed(2) + ""; } .calculator-container { font-family: sans-serif; border: 1px solid #ccc; padding: 20px; border-radius: 8px; max-width: 600px; margin: 20px auto; background-color: #f9f9f9; } .calculator-container h2 { text-align: center; margin-bottom: 20px; color: #333; } .calculator-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; } .input-group { display: flex; flex-direction: column; } .input-group label { margin-bottom: 5px; font-weight: bold; color: #555; } .input-group input { padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; } button { display: block; width: 100%; padding: 12px; background-color: #4CAF50; color: white; border: none; border-radius: 4px; font-size: 18px; cursor: pointer; transition: background-color 0.3s ease; } button:hover { background-color: #45a049; } #result { margin-top: 25px; padding: 15px; border: 1px solid #eee; border-radius: 4px; background-color: #fff; } #result h3 { margin-top: 0; color: #333; } #result p { margin-bottom: 10px; color: #666; } #result p strong { color: #333; } .error { color: red; font-weight: bold; }

Leave a Comment