Interest rate calculator that determines the Balance owed
up vote
-4
down vote
favorite
Given the Interest rate, Principal, and monthly payment. I need this to calculate the balance owed each month for the first 6 months if interest is compounded monthly.
So far i have this, not sure where to go from here.
<html>
<head></head>
<title>Interest Calculator</title>
<body>
<p>Interest Calculator</p>
<p> Starting Balance<input type="number" id="balance"></input></p>
<p> Monthly Payment<input type="number" id="payment"></input></p>
<p> Interest Rate<input type="number" id="rate"></input></p>
<button id="balanceOwed">Calculate</button>
<script>
function balanceOwed (a, b, c) {
return ((a-b) * c );
}
document.getElementById("balaceOwed").onclick = function (){
var a = document.getElementById("balance").value;
var b = document.getElementById("payment").value;
var c =
document.getElementById("rate").value;
alert(balanceOwed(a,b,c));
}
</script>
</body>
</html>
`
javascript html html5
add a comment |
up vote
-4
down vote
favorite
Given the Interest rate, Principal, and monthly payment. I need this to calculate the balance owed each month for the first 6 months if interest is compounded monthly.
So far i have this, not sure where to go from here.
<html>
<head></head>
<title>Interest Calculator</title>
<body>
<p>Interest Calculator</p>
<p> Starting Balance<input type="number" id="balance"></input></p>
<p> Monthly Payment<input type="number" id="payment"></input></p>
<p> Interest Rate<input type="number" id="rate"></input></p>
<button id="balanceOwed">Calculate</button>
<script>
function balanceOwed (a, b, c) {
return ((a-b) * c );
}
document.getElementById("balaceOwed").onclick = function (){
var a = document.getElementById("balance").value;
var b = document.getElementById("payment").value;
var c =
document.getElementById("rate").value;
alert(balanceOwed(a,b,c));
}
</script>
</body>
</html>
`
javascript html html5
You have typodocument.getElementById("balanceOwed")
– Smollet777
Nov 11 at 19:05
add a comment |
up vote
-4
down vote
favorite
up vote
-4
down vote
favorite
Given the Interest rate, Principal, and monthly payment. I need this to calculate the balance owed each month for the first 6 months if interest is compounded monthly.
So far i have this, not sure where to go from here.
<html>
<head></head>
<title>Interest Calculator</title>
<body>
<p>Interest Calculator</p>
<p> Starting Balance<input type="number" id="balance"></input></p>
<p> Monthly Payment<input type="number" id="payment"></input></p>
<p> Interest Rate<input type="number" id="rate"></input></p>
<button id="balanceOwed">Calculate</button>
<script>
function balanceOwed (a, b, c) {
return ((a-b) * c );
}
document.getElementById("balaceOwed").onclick = function (){
var a = document.getElementById("balance").value;
var b = document.getElementById("payment").value;
var c =
document.getElementById("rate").value;
alert(balanceOwed(a,b,c));
}
</script>
</body>
</html>
`
javascript html html5
Given the Interest rate, Principal, and monthly payment. I need this to calculate the balance owed each month for the first 6 months if interest is compounded monthly.
So far i have this, not sure where to go from here.
<html>
<head></head>
<title>Interest Calculator</title>
<body>
<p>Interest Calculator</p>
<p> Starting Balance<input type="number" id="balance"></input></p>
<p> Monthly Payment<input type="number" id="payment"></input></p>
<p> Interest Rate<input type="number" id="rate"></input></p>
<button id="balanceOwed">Calculate</button>
<script>
function balanceOwed (a, b, c) {
return ((a-b) * c );
}
document.getElementById("balaceOwed").onclick = function (){
var a = document.getElementById("balance").value;
var b = document.getElementById("payment").value;
var c =
document.getElementById("rate").value;
alert(balanceOwed(a,b,c));
}
</script>
</body>
</html>
`
<html>
<head></head>
<title>Interest Calculator</title>
<body>
<p>Interest Calculator</p>
<p> Starting Balance<input type="number" id="balance"></input></p>
<p> Monthly Payment<input type="number" id="payment"></input></p>
<p> Interest Rate<input type="number" id="rate"></input></p>
<button id="balanceOwed">Calculate</button>
<script>
function balanceOwed (a, b, c) {
return ((a-b) * c );
}
document.getElementById("balaceOwed").onclick = function (){
var a = document.getElementById("balance").value;
var b = document.getElementById("payment").value;
var c =
document.getElementById("rate").value;
alert(balanceOwed(a,b,c));
}
</script>
</body>
</html>
<html>
<head></head>
<title>Interest Calculator</title>
<body>
<p>Interest Calculator</p>
<p> Starting Balance<input type="number" id="balance"></input></p>
<p> Monthly Payment<input type="number" id="payment"></input></p>
<p> Interest Rate<input type="number" id="rate"></input></p>
<button id="balanceOwed">Calculate</button>
<script>
function balanceOwed (a, b, c) {
return ((a-b) * c );
}
document.getElementById("balaceOwed").onclick = function (){
var a = document.getElementById("balance").value;
var b = document.getElementById("payment").value;
var c =
document.getElementById("rate").value;
alert(balanceOwed(a,b,c));
}
</script>
</body>
</html>
javascript html html5
javascript html html5
asked Nov 11 at 18:45
reyrey
1
1
You have typodocument.getElementById("balanceOwed")
– Smollet777
Nov 11 at 19:05
add a comment |
You have typodocument.getElementById("balanceOwed")
– Smollet777
Nov 11 at 19:05
You have typo
document.getElementById("balanceOwed")
– Smollet777
Nov 11 at 19:05
You have typo
document.getElementById("balanceOwed")
– Smollet777
Nov 11 at 19:05
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53251990%2finterest-rate-calculator-that-determines-the-balance-owed%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You have typo
document.getElementById("balanceOwed")
– Smollet777
Nov 11 at 19:05