Creating A Monthly Mortgage Calculator

Oct 12, 2010

I am trying to create a monthly mortgage calculator, I have been able to make it show prompts for Amount of loan; Interest rate; and Term of loan (in months), but it will not display the results. Below is the code I have utilized to get this far.

[Code]....

View 1 Replies


ADVERTISEMENT

Mortgage Calculator Script

Nov 4, 2003

Where could I find a mortgage calculator script I could place on my website? I found a really cool one at www.dave.imarc.net/php free to use but I have a hard time understanding how to install it. I really don't even know what php is.

Could someone maybe guide me out of this programming lingo darkness?

View 2 Replies View Related

Functions Called Correctly In A Mortgage Calculator

Oct 13, 2009

I've been trying to write a Javascript Mortgage Calculator for the past day and I believe I've got the structure right, although for some reason my functions must not be operating correctly or are not being called correctly. I'm almost afraid to say that it could be an error in the functions usage within the while loop. This Mortgage Calculator uses the principle of "bisection" to guess at the monthly payment necessary to fulfill the standards of the mortgage in question. This means that the loop is used to consistently halve the value of a guess until the correct monthly payment is guessed. Here is the code:

<script type=text/javascript>
function calcMortgage (amountText, yearsText, interestText) {
// constant definitions
// variable declaration
var amount = Number(amountText);
var years = Number(yearsText);
[Code]...

View 3 Replies View Related

Creating A Less Than Or More Than Calculator?

Dec 2, 2011

I have the last assignment that she wants us to do and I had to pull up another assignment that she wanted us to build upon( which is one of those coding without anything advance)

<html>
<head>
<title>

[code]....

now she wants us to do max <beta and then name the variables with if a<b and I don't know if I put that in the concatenation or what to name my variables!

View 18 Replies View Related

Creating Calculator - How To Execute Operators

Jul 18, 2010

We are required to create a javascript calculator. The page should has 3 text box, first and second text box would allow the user to input numbers, the third textbox will show the answer. the arithmetic operations should be in radio button, drop-down list and the select option. I'm still working on the radio button and i don't how to execute the operators. How to grab the inputted number from the textbox and how to execute the operators.

View 1 Replies View Related

Creating Calculator Using AppendDigit And Else If Functions?

Oct 20, 2010

I am new to Java and my teacher goes way too fast in class and am a day behind on this calculator. Our assignment is to make a Calculator using AppendDigit and Else if functions in the java code. Some of my other code in html may be messed up as well. I am just lost so here is the HTML:

Code:
<title>John's Calculator</title>
<style type="text/css">
.rt {text-align:right; font-family: Courier New;}
.numbttn {text-align: center; background-color:
silver; font-family: Courier New; width 4eM;}
body {background-color: silver} .....

And Here is the pathetic Javascript which I have barely started:
Code:
// cal Applet- John Falco- 20 October 2010
function clear TB() {
document.form.kpd.display.value="0";
}
function AppendDigit (x) {
if (x==".") {
if ((!HasDecimal))
}
else {
document.forms.kpd.display.value =
document.forms.kdp.display.value + X;
};

View 7 Replies View Related

Creating A Calculator That Returns An Answer Using An If/else Statement?

Nov 5, 2010

I am trying to place a Body Mass Index Calculator on a web page. I need a prompt box that asks the user to enter their weight and height (in pounds and inches, respectively). The box should calculate BMI as follows:BMI = (Weight / (Height * Height) ) * 703;After the BMI is calculated, I would like the box to display the user's status (obese, overweight, normal, underweight). After the user has entered all information, use the document.write function to display the following, with the customized information:

Height
Weight
BMI
Status

View 3 Replies View Related

Creating A Results Calculator -enter A Name Along With A Mark And Store In A Cookie ?

Apr 20, 2010

I am basically trying to enter a name along with a mark and store this in a javascript cookie. From this I want to create the mean and graph for up to 100 results.This is the code:

<html>
<head>
<title>Class Marks Calculator</title>[code]....

I have been working on this for hours and do not understand where I am going wrong.

View 5 Replies View Related

Creating That Has Both A Lightbox Rel Link And A Quick Calculator To Work Out A Size Of A Product?

Dec 22, 2010

I have a page on a website I am creating that has both a lightbox rel link and a quick calculator to work out a size of a product.Here are the links to the java files I am using:

<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/jquery.lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="scripts/jquery.js"></script>

[code].....

View 1 Replies View Related

Monthly Frames

Sep 19, 2006

I am using frames - yes frames - I do not know how to do anything but and I
know that there is better out there......but........
I am trying to set a frame so that it automatically puts a page
corresponding to the month in that frame (a calendar) Code:

View 6 Replies View Related

Display The Total Loan Repayment Amount Instead Of The Monthly Payment

Oct 3, 2011

i want the code below to display the total loan repayment amount instead of the monthly payment payment = principle * monthly interest/(1 - (1/(1+MonthlyInterest)*Months)) , eg if if l0an is 20$ payment is in 4 months, intrest rate is 15% display = amount to be repaid.

[Code]....

View 3 Replies View Related

Calculate Mortgage Payment

Feb 16, 2005

I'm trying to create a mortgage payment calculator in Javascript and am having problems. My algorithm seems correct but it's not giving the right results. Im using this code:

function do_calc_payment(){var term = document.calc_payment.term.value;var rate = document.calc_payment.rate.value;var amount = document.calc_payment.amount.value;var j = rate / (12*100);var m = term * 12;var payment = amount * ( j / (1 - (1 + j) ^ -m))var result = "$"+Math.round((payment)*1000)/1000;if(isNaN(payment)){document.calc_payment.rate.value="";document.calc_payment.amount.value="";result="Not a Number";}if(payment.length>=15){result="Max Characters";}document.getElementById('new_payment').innerHTML = result;}

View 2 Replies View Related

Algorithm To Calculate Mortgage Payments..

Nov 2, 2004

Does anybody know of an algorithm to calculate mortgage payments? e.g.

Amount: 100,000
Interest Rate: 4.5%
Term: 25 Years

Monthly Payments: x

I've looked at other js scripts to do this but it seems alot more involved then I thought, and because they use non descriptive variable names I can't work any of them out..

View 1 Replies View Related

Mortgage Calc Adding Extra Decimal Place To Interest Rate

Oct 12, 2009

I have a mortgage calc that is adding an extra decimal place to my interest rate. To see this in action go to: [URL]
Change the interest rate to 7.5
Click Calculate Payment
Click Create Amortization Chart
On the following screen you'll see a recap of your data and the interest rate will now say 7.55. Same thing happens if you enter 6.2. Next screen shows 6.22/. I've attached the html and js files in a zip.

View 2 Replies View Related

Working On An Mpg Calculator ?

Oct 4, 2009

I am working on an Mpg calculator and I am stuck.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

I have a mistake when it is suppose to calculate.

View 4 Replies View Related

Make A Calculator App?

Mar 25, 2011

I'm trying to make a calculator app; with a few differences. I have a text field with a numberpad below it, I got the numbers to show up in the text field, but am unsure as to how when I hit the enter button - it would store them in a variable?...I am also wondering as to how it would store current value and then allow me to input another value(maybe on the next page) and either subtract or add to it(the first value that is stored).I am also wondering how to get a decimal point in place(need it for currency).

Here is my code:

<html>
<head>
<script type = "text/javascript">

[code].....

View 10 Replies View Related

Price Calculator

Jan 4, 2007

I am trying to create a price calculator that automatically calculates the price of custom made picture frame. I got an equation that finds the square area of the frame by multiplying the perimeter (2*length*width) by the thickness (which the user can choose from 1.5", 2" or 3"). Then it multiplies it by a decimal number (0.27 if the frame is 1.5" thick, 0.23 if its 2" thick, and 0.18 if its 3" thick). Then it adds a $5 custom made fee to the final answer. But when I save it to an html file and load it in Internet Explorer, it doesn't calculate. Code:

View 5 Replies View Related

Field Calculator

Jul 26, 2007

I'm having some problems with a calculator that I'm working on and am stumped on a particular situation regarding adding additional script and how it should be written. I've searched the forum and the web and just cant locate a viable solution. Code:

View 1 Replies View Related

Basic Calculator

Dec 6, 2003

I know there is a million of them but here's a little calculator script I made just for kicks. Feedback is always appreciated, good or bad.

I think I did a pretty good job of mirroring the windows calculator functionality.

Basic keys are mapped (optionally) to the keyboard.


<html>
<head>
<title>Web Calculator</title>
<style type="text/css">
table
{
text-align:center;
background-color:#e5e5c5;
}

.button
{
width:55px;
font-weight:bold;
background-color:lightblue;
color:#333399;
}

.functbut
{
width:55px;
font-weight:bold;
background-color:lightblue;
color:red;
}

.back
{
width:115px;
font-weight:bold;
background-color:lightblue;
color:red;
}

.header
{
color:#333399;
}

#display
{
text-align:right;
}
</style>
<script type="text/javascript">
var find=document.getElementById;
var temp=0;
var total=0;
var which=0;
var m=0;

function Mplus()
{
m=parseFloat(find('display').value) + m;
find('memory1').value="M+*";
}

function Mclear()
{
m=0;
find('memory1').value="M+";
}

function Mrecall()
{
find('display').value=m;
}

function Mreplace()
{
m=find('display').value;
}

function showMe(num)
{
if(temp==0)
{
find('display').value=num;
temp=1;
}
else
{
find('display').value+=num;
}
}

function calcEm(num)
{
str=parseFloat(find('display').value);
if(which==0)
{
total=find('display').value;
temp=0;
which=num;
}
else if(which==1)
{
find('display').value=parseFloat(total)+ str;
total=find('display').value;
which=num;
temp=0;
}
else if(which==2)
{
find('display').value=parseFloat(total) * str;
total=find('display').value;
which=num;
temp=0;
}
else if(which==3)
{
find('display').value=parseFloat(total) / str;
total=find('display').value;
which=num;
temp=0;
}
else if(which==4)
{
find('display').value=parseFloat(total) - str;
total=find('display').value;
which=num;
temp=0;
}

}

function clearAll()
{
find('display').value=0;
which=0;
temp=0;
total=0;
}

function clearDisplay()
{
find('display').value="0"
temp=0;
}

function fractIt()
{
find('display').value=(1) / str;
}

function getPerc()
{
var d=find('display').value=str / 100;
calcEm(0);
}

function backSpace()
{
find('display').value=find('display').value.substring("0",find('display').value.length-1);
}

function getRoot()
{
find('display').value=Math.sqrt(find('display').value);
}

function invertIt()
{
var w=find('display').value.indexOf("-");
if(w==-1)
{
find('display').value="-" + find('display').value
}
else
{
find('display').value=find('display').value.substring("1",find('display').value.length);
}
}



function keyHandler()
{
keys=new Array();
keys[97]=("1");
keys[98]=("2");
keys[99]=("3");
keys[100]=("4");
keys[101]=("5");
keys[102]=("6");
keys[103]=("7");
keys[104]=("8");
keys[105]=("9");
keys[96]=("0");
keys[13]=("equal");
keys[107]=("plus");
keys[110]=("dot");
keys[109]=("minus");
keys[106]=("times");
keys[111]=("divide");
keys[110]=("dot");
keys[8]=("back");
keys[27]=("clear");

kc=window.event.keyCode;

if(keys[kc]!=undefined)
{
cColor('#333399');
setTimeout('cColor("lightblue")',100);
find(keys[kc]).click();
}
return false;
}
function cColor(bcolor)
{
find(keys[kc]).style.background=bcolor;
}

function keyOnOff()
{
var b=find('keychoice').checked
if(b==true)
{
document.onkeydown=keyHandler;
}
else
{
document.onkeydown="";
}
}
function checkHandler()
{
var e=find('keychoice').checked
if(e==false)
{
e=true;
}
else
{
e=false;
}
keyOnOff();
}

</script>
</head>
<body>
<table cellspacing="0" border="1">
<thead>
<th colspan="6" class="header">Web Calculator</th>
</thead>
<tr>
<td colspan="6"><input type="text" size="43" id="display" value="0."></td>
</tr>
<tr>
<td colspan="2"><input type="button" value="Backspace" id="back" class="back" onclick="backSpace()"></td>
<td colspan="2"><input type="button" id="ce" value="CE" class="back" onclick="clearDisplay()"></td>
<td colspan="2"><input type="button" id="clear" value="C" class="back" onclick="clearAll()"></td>
</tr>
<tr>
<td><input type="button" class="functbut" value="MC" onclick="Mclear();"></td>
<td><input type="button" class="button" id="7" value="7" onclick="showMe(&#397;')"></td>
<td><input type="button" class="button" id="8" value="8" onclick="showMe(&#398;')"></td>
<td><input type="button" class="button" id="9" value="9" onclick="showMe(&#399;')"></td>
<td><input type="button" class="functbut" id="divide" value="/" onclick="calcEm(3)"></td>
<td><input type="button" class="button" id="sqrt" value="sqrt" onclick="getRoot();"></td>
</tr>
<tr>
<td><input type="button" class="functbut" value="MR" onclick="Mrecall();"></td>
<td><input type="button" class="button" id="4" value="4" onclick="showMe(&#394;')"></td>
<td><input type="button" class="button" id="5" value="5" onclick="showMe(&#395;')"></td>
<td><input type="button" class="button" id="6" value="6" onclick="showMe(&#396;')"></td>
<td><input type="button" class="functbut" id="times" value="*" onclick="calcEm(2)"></td>
<td><input type="button" class="button" id="perc" value="%" onclick="getPerc()"></td>
</tr>
<tr>
<td><input type="button" class="functbut" value="MS" onclick="Mreplace();"></td>
<td><input type="button" class="button" id="1" value="1" onclick="showMe(&#391;')"></td>
<td><input type="button" class="button" id="2" value="2" onclick="showMe(&#392;')"></td>
<td><input type="button" class="button" id="3" value="3" onclick="showMe(&#393;')"></td>
<td><input type="button" class="functbut" id="minus" value="-" onclick="calcEm(4)"></td>
<td><input type="button" class="button" id="x" value="1/x" onclick="fractIt()"></td>
</tr>
<tr>
<td><input type="button" class="functbut" value="M+" id="memory1" onclick="Mplus();"></td>
<td><input type="button" class="button" id="0" value="0" onclick="showMe(&#390;')"></td>
<td><input type="button" class="button" id="flop" value="+/-" onclick="invertIt()"></td>
<td><input type="button" class="button" id="dot" value="." onclick="showMe(this.value)"></td>
<td><input type="button" class="functbut" id="plus" value="+" onclick="calcEm(1)"></td>
<td><input type="button" class="functbut" id="equal" value="=" onclick="calcEm(0)"></td>
</tr>
<tr>
<td colspan="6" class="header">Num Pad On:<input type="checkbox"
id="keychoice" onclick="checkHandler();keyOnOff();"></td>
</tr>
</table>

</body>
</html>

Happy Calculating...

View 3 Replies View Related

Shipping Calculator

Jan 17, 2006

I'm attempting to create a shopping cart shipping calculator using the total $ provided by the cart itself (%total%). Basically the script needs to take the %total%, compare it to a bunch of arrays in the javascript, and provide the shipping charge as a percentage of the total. For example:

The cart total ends up being $15 (or %total%).

The set rates for shipping are:

Standard Shipping
$1 - $4.99 : 7.95% (of total)
$5 - $9.99 : 9.95%
$10 - $19.99 : 11.95%

Overnight Shipping
$1 - $4.99 : 9.95% (of total)
$5 - $9.99 : 11.95%
$10 - $19.99 : 19.95%

Two radio buttons would show the 2 shipping options and the shipping charges like this:
O Standard: $1.79
O Overnight: $2.99

View 3 Replies View Related

Make Calculator To Be A Pop Up

Feb 19, 2009

I have a simple calculator written using javascript and html. I would like to make it such that when a link to the calculator is clicked, a pop up window with this calculator appears rather than referring a user to anew page.

View 2 Replies View Related

Calculator With If/then Statement?

May 26, 2010

I am working on a script that calculates the rental rate for a property. I currently have this code and form, which works as I wish it to.

Code:
<script type="text/javascript">
function roundCents(amount) {

[code]....

View 3 Replies View Related

Get A Calculator To Work With IF/THEN?

Oct 19, 2010

I am trying to make a calculator that calculates the amount of words inputted (words) and multiplying it with a variable decided by an If/Then statement. The way I want it to work is that if there is 1-10,000 inputted it multiplies whatever that amount is by .29, and if there is 10,000-20,000 by .26, and anything more than 20,000 by .24. This is what I have come up with so far:

Code JavaScript:
<script type="text/javascript">
function wordcount(){

[code]....

View 2 Replies View Related

JS Calculator Not Working In Mozilla But Ok In IE

Feb 26, 2010

I have an online calculator in javascript which works in IE but not Moz.

site: [URL]

code:
function workit()
{
var xsource = new Array(0,0.09,0.1); // source language
var xtarget = new Array(0,0.09,0.10,0.12,0.14); // target language

[Code]....

View 4 Replies View Related

Time Calculator For Website?

Nov 24, 2010

I am trying to implement a time calculator onto my website with preset times to tell how long it would take to make troops. Say you want to make 100 Catapults and each Catapult takes one minute and ten seconds to make, I would like to be able to show the time in days /hours / minutes preferably in the format of 0:00:00. I would like it so someone can type in the amount of troops they want. There are Infantry that take 0:00:22, Cavalry that take 0:00:52, Archers that take 0:00:35 and Catapults that take 0:01:10.

View 2 Replies View Related

Change Calculator And Checkboxes?

Nov 23, 2011

Show a checkbox list with names of the coins. The user picks the coins he/she has and presses submit.
Then prompt boxes show up asking how many toonies you have (if the user selected toonies) and it does that for each one that has been checked marked.I've tried this

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

[code]....

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved