<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Calculators-Free.com</title>
	<atom:link href="http://calculators-free.com/feed" rel="self" type="application/rss+xml" />
	<link>http://calculators-free.com</link>
	<description>Free Calculators with Creative Commons Attribution Licensing</description>
	<pubDate>Wed, 09 Jul 2008 22:22:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Smoking Calculator</title>
		<link>http://calculators-free.com/smoking-calculator-13</link>
		<comments>http://calculators-free.com/smoking-calculator-13#comments</comments>
		<pubDate>Wed, 09 Jul 2008 22:22:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Health &amp; Diet Calculators]]></category>

		<guid isPermaLink="false">http://calculators-free.com/?p=13</guid>
		<description><![CDATA[
Introduction &#124; Demonstration Calculator &#124; Source Code
How The Smoking Calculator Works
This calculator takes the number of years you smoked, average number of cigarettes you smoked a day, and the current price for a pack of cigarettes and delivers a few figures:

 Number of cigarettes you smoked in that period.
 How much all those cigarettes would [...]]]></description>
			<content:encoded><![CDATA[<p>
<p class="canchors">Introduction | <a href="#democalc">Demonstration Calculator</a> | <a href="#source-code">Source Code</a></p><br />
<a name="introduction"><h2>How The Smoking Calculator Works</h2></a></p>
<p>This calculator takes the number of years you smoked, average number of cigarettes you smoked a day, and the current price for a pack of cigarettes and delivers a few figures:
<ul>
<li> Number of cigarettes you smoked in that period.
<li> How much all those cigarettes would cost today.
<li> How much the tobacco in those cigarettes weighed (based on 0.68 grams per cigarette).</ul>
<p>The results can be pretty surprising.  I smoked around 3/4 of a pack a day for 23 years.  That turned out to be over 126,000 cigarettes, costing more than $37,000 and with tobacco weighing in at over 188 pounds.  I smoked a grown man&#8217;s weight in tobacco.</p>
<p><p class="canchors"><a href="#introduction">Introduction</a> | Demonstration Calculator | <a href="#source-code">Source Code</a></p>
<p><a name="democalc"><h2>Demonstration Calculator</h2></a><script src="/sources/smoking.js"></script><br />
<form name="wcbubba" action="javascript:void();"></p>
<p>Number of years you smoked:<br />
<input type="text" size="5" name="years"></p>
<p>Average number of cigarettes you smoked each day:<br />
<input type="text" size="5" name="smokes"></p>
<p>Average price for a pack of cigarettes in your area (in dollars)<br />
<input type="text" size="5" name="price"></p>
<p><input type="submit" value="Show My Totals" onclick="calcSmokes()"></form></p>
<div id="totals"></div>
<p>
</p>
<p></p>
<p><p class="canchors"><a name="introduction">Introduction</a> | <a href="#democalc">Demonstration Calculator</a> | Source Code</p><br />
<a name="source-code"><h2>Smoking Calculator Source Code</h2></a></p>
<p>This calculator is licensed to you under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a>.  If you would like to use the source code on your site or create a derivative work from it, you must include the following HTML on the page where the calculator appears.  We&#8217;re giving you this code for free with a legal license to use it.  All you have to do is credit us in the manner we specify.</p>
<p><b>Required Credit HTML</b><br />
<textarea style="width:400px;height:65px;font-size:11px;font-family:arial,helvetica;">Based on <a href="http://calculators-free.com/smoking-calculator-13">Smoking Calculator</a> (<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">license</a>)</textarea></p>
<p><b>INSTALLATION</b></p>
<p>Just cut and paste the Javascript code and HTML form below into your page.  If you want to customize the appearance of the form, feel free.  Just make sure the input name and form id/name values are not changed.</p>
<div class="mycode"><pre><code>

&lt;script type=&quot;text/javascript&quot;&gt;
function calcSmokes(){

// GET VALUES FROM FORM, SET VALUE TO ONE IF THE VALUE IN THE FORM IS NOT A NUMBER

var years = (isNaN(document.wcbubba.years.value)) ? 1 : document.wcbubba.years.value;
var smokes = (isNaN(document.wcbubba.smokes.value)) ? 1 : document.wcbubba.smokes.value;
var price = (isNaN(document.wcbubba.price.value)) ? 1 : document.wcbubba.price.value;

// DO CALCULATION OF NUMBER OF CIGARETTES SMOKED ROUNDED TO WHOLE NUMBER

var smoked = parseInt(years * 365.25 * smokes);

// CALCULATE TODAY&#039;S VALUE OF ALL CIGS ROUNDED TO TWO DECIMAL PLACES

var expense = parseInt(((smoked/20) * price) *100) / 100;

// CALCULATE WEIGHT OF TOBACCO IN GRAMS AND POUNDS TO TWO DECIMAL PLACES

var weight = parseInt((smoked * 0.68) *100) / 100;
var pounds = parseInt(((weight/1000) * 2.204) * 100) / 100;

var expout = &#039;You smoked approximately &#039; + smoked + &#039; cigarettes.&lt;br&gt;At current prices, that would cost $&#039; + expense + &#039;.&lt;br&gt;And the weight of the tobacco in all those cigarettes was &#039; + pounds + &#039; pounds (&#039; + weight +&#039; grams).&#039;;

document.getElementById(&#039;totals&#039;).innerHTML = expout;
}
&lt;/script&gt;

&lt;form name=&quot;wcbubba&quot; action=&quot;javascript:void();&quot;&gt;
Number of years you smoked:&lt;br&gt;
&lt;input type=&quot;text&quot; size=&quot;5&quot; name=&quot;years&quot;&gt;&lt;br&gt;&lt;br&gt;
Average number of cigarettes you smoked each day:&lt;br&gt;
&lt;input type=&quot;text&quot; size=&quot;5&quot; name=&quot;smokes&quot;&gt;&lt;br&gt;&lt;br&gt;
Average price for a pack of cigarettes in your area (in dollars)&lt;br&gt;
&lt;input type=&quot;text&quot; size=&quot;5&quot; name=&quot;price&quot;&gt;&lt;br&gt;&lt;br&gt;
&lt;input type=&quot;submit&quot; value=&quot;Show My Totals&quot; onclick=&quot;calcSmokes()&quot;&gt;&lt;/form&gt;&lt;br&gt;

&lt;div id=&quot;totals&quot;&gt;&lt;/div&gt;

</code></pre></div>
]]></content:encoded>
			<wfw:commentRss>http://calculators-free.com/smoking-calculator-13/feed</wfw:commentRss>
		</item>
		<item>
		<title>Auto Loan Payment Calculator with Amortization</title>
		<link>http://calculators-free.com/auto-loan-payment-calculator-with-amortization-12</link>
		<comments>http://calculators-free.com/auto-loan-payment-calculator-with-amortization-12#comments</comments>
		<pubDate>Thu, 03 Jul 2008 23:01:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Loan Calculators]]></category>

		<guid isPermaLink="false">http://calculators-free.com/?p=12</guid>
		<description><![CDATA[
Introduction &#124; Demonstration Calculator &#124; Source Code
How The Auto Loan Payment with Amortization Works
This calculator uses the same mathematical functions as our Simple Auto Loan Calculator, but iterates through each payment, calculating the interest and principal amounts for each payment as you pay off the loan.
Introduction &#124; Demonstration Calculator &#124; Source Code
Demonstration Calculator


Loan Amount: 
Loan [...]]]></description>
			<content:encoded><![CDATA[<p>
<p class="canchors">Introduction | <a href="#democalc">Demonstration Calculator</a> | <a href="#source-code">Source Code</a></p><br />
<a name="introduction"><h2>How The Auto Loan Payment with Amortization Works</h2></a></p>
<p><br /><P>This calculator uses the same mathematical functions as our <a href="http://calculators-free.com/simple-auto-loan-calculator-7">Simple Auto Loan Calculator</a>, but iterates through each payment, calculating the interest and principal amounts for each payment as you pay off the loan.</p></p>
<p><p class="canchors"><a href="#introduction">Introduction</a> | Demonstration Calculator | <a href="#source-code">Source Code</a></p><br />
<a name="democalc"><h2>Demonstration Calculator</h2></a></p>
<p><script src="/sources/auto-loan-with-amortization.js"></script><br />
<form id="wcbubba" name="wcbubba" action="javascript:void();"><br />
Loan Amount: <input type=text name="loan" size=8><br />
Loan Term: <input type=text name="term" size=8> months<br />
APR Interest: <input type=text name="apr" size=8><br /><ber></p>
<p><input type="submit" value="Calculate Payment" onClick="calcLoan();"> <b>Payment:</b> <input type=text name = "payment" size=9><br />
<input type="submit" value="Show Amortization" onClick="showAm();"><br />
</form></p>
<div id="amortsub">
</div>
<p></p>
<p><p class="canchors"><a name="introduction">Introduction</a> | <a href="#democalc">Demonstration Calculator</a> | Source Code</p><br />
<a name="source-code"><h2>Auto Loan Payment with Amortization Source Code</h2></a></p>
<p>This calculator is licensed to you under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a>.  If you would like to use the source code on your site or create a derivative work from it, you must include the following HTML on the page where the calculator appears.  We&#8217;re giving you this code for free with a legal license to use it.  All you have to do is credit us in the manner we specify.</p>
<p><b>Required Credit HTML</b><br />
<textarea style="width:400px;height:65px;font-size:11px;font-family:arial,helvetica;">Based on <a href="http://calculators-free.com/auto-loan-payment-calculator-with-amortization-12">Auto Loan Payment with Amortization</a> (<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">license</a>)</textarea></p>
<p><b>INSTALLATION</b></p>
<p>Just cut and paste the Javascript code and HTML form below into your page.  If you want to customize the appearance of the form, feel free.  Just make sure the input name and form id/name values are not changed.</p>
<div class="mycode"><pre><code>
&lt;script type=&quot;text/javascript&quot;&gt;

var amortsub = false;

function calcLoan() {

var formvals = getFormVal();

var years = formvals[0];
var months = years;

var loan = formvals[2];
var apr = formvals[1];

var mpr = apr / 1200;
var nfactor = 0 - months;
var mofactor = Math.pow((1 + mpr), nfactor);
var bofactor = 1 - mofactor;
var tofactor = mpr / bofactor;

var payment = loan * tofactor;
var reducto = Math.round(payment*100)/100;

document.wcbubba.payment.value = &quot;$&quot;+reducto;

if (amortsub) showAm();

}

function showAm(){

amortsub = true;

formvals = getFormVal();

var years = formvals[0];
var months = years;

var loan = formvals[2];
var apr = formvals[1];

var mpr = apr / 1200;
var nfactor = 0 - months;
var mofactor = Math.pow((1 + mpr), nfactor);
var bofactor = 1 - mofactor;
var tofactor = mpr / bofactor;

var payment = loan * tofactor;
var reducto = Math.round(payment*100)/100;

document.wcbubba.payment.value = &quot;$&quot;+reducto;

// NOW WE CALCULATE THE AMORTIZATION

var intpaid = 0;
var princpaid = 0;
var factsout = &quot;&quot;;
var inyear = 0;
var inmonth = 0;

document.getElementById(&#039;amortsub&#039;).innerHTML = &#039;&lt;b style=&quot;font-size:19px;&quot;&gt;MONTHLY AMORTIZATION&lt;/b&gt;&lt;br&gt;&lt;br&gt;&#039;;

for(var i=0;i&lt;months;i++){
intpaid = Math.round((mpr * loan) *100)/100;
princpaid = Math.round((reducto - intpaid)*100)/100;
loan = Math.round((loan - princpaid)*100)/100;

inyear = parseInt(i/12);
inmonth = i - (inyear * 12);

factsout += &#039;&lt;b&gt;Year &#039; + (inyear + 1) + &#039; Month &#039; + (inmonth +1) + &#039;:&lt;/b&gt;&lt;br&gt;&nbsp;&nbsp; Principal Paid: $&#039; + princpaid + &#039;&lt;br&gt;&nbsp;&nbsp; Interest Paid: $&#039; + intpaid + &#039;&lt;br&gt;&nbsp;&nbsp; Principal Remaining: $&#039; + loan + &#039;&lt;br&gt;&#039;;

}
document.getElementById(&#039;amortsub&#039;).innerHTML += factsout;

flush();

}

function getFormVal(){

var years = parseInt(document.wcbubba.term.value);
var loan = parseInt(document.wcbubba.loan.value);
var apr = parseFloat(document.wcbubba.apr.value);

if((years &lt;= 0)||(isNaN(years))) years = 1;
if((apr &lt;= 0)||(isNaN(apr))) apr = 1;
if((loan &lt;= 0)||(isNaN(loan))) loan = 1;

var mike = new Array(years,apr,loan);

return mike;
}

&lt;/script&gt;

&lt;form id=&quot;wcbubba&quot; name=&quot;wcbubba&quot; action=&quot;javascript:void();&quot;&gt;
Loan Amount: &lt;input type=text name=&quot;loan&quot; size=8&gt;&lt;br&gt;
Loan Term: &lt;input type=text name=&quot;term&quot; size=8&gt; months&lt;br&gt;
APR Interest: &lt;input type=text name=&quot;apr&quot; size=8&gt;&lt;br&gt;&lt;ber&gt;

&lt;input type=&quot;submit&quot; value=&quot;Calculate Payment&quot; onClick=&quot;calcLoan();&quot;&gt; &lt;b&gt;Payment:&lt;/b&gt; &lt;input type=text name = &quot;payment&quot; size=9&gt;&lt;br&gt;
&lt;input type=&quot;submit&quot; value=&quot;Show Amortization&quot; onClick=&quot;showAm();&quot;&gt;
&lt;/form&gt;&lt;br&gt;&lt;br&gt;

&lt;div id=&quot;amortsub&quot;&gt;

&lt;/div&gt; 
</code></pre></div>
]]></content:encoded>
			<wfw:commentRss>http://calculators-free.com/auto-loan-payment-calculator-with-amortization-12/feed</wfw:commentRss>
		</item>
		<item>
		<title>Mortgage Calculator With Amortization</title>
		<link>http://calculators-free.com/mortgage-calculator-with-amortization-11</link>
		<comments>http://calculators-free.com/mortgage-calculator-with-amortization-11#comments</comments>
		<pubDate>Thu, 03 Jul 2008 22:27:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Loan Calculators]]></category>

		<guid isPermaLink="false">http://calculators-free.com/?p=11</guid>
		<description><![CDATA[
Introduction &#124; Demonstration Calculator &#124; Source Code
How The Mortgage Calculator with Amortization Works
This calculator uses the same mathematical functions as our Simple Mortgage Payment Calculator, but creates a loop, going through all the months and calculating the interest to principal ratios for each payment as you pay down the principal each month.
The amortization display is [...]]]></description>
			<content:encoded><![CDATA[<p>
<p class="canchors">Introduction | <a href="#democalc">Demonstration Calculator</a> | <a href="#source-code">Source Code</a></p><br />
<a name="introduction"><h2>How The Mortgage Calculator with Amortization Works</h2></a></p>
<p><p>This calculator uses the same mathematical functions as our <a href="http://calculators-free.com/simple-mortgage-payment-calculator-1">Simple Mortgage Payment Calculator</a>, but creates a loop, going through all the months and calculating the interest to principal ratios for each payment as you pay down the principal each month.</p></p>
<p>The amortization display is very simple.  The output for each month is generated by one line of code&#8230;</p>
<p><pre><code>
factsout += &#039;&lt;b&gt;Year &#039; + (inyear + 1) + &#039; Month &#039; + (inmonth +1) + &#039;:&lt;/b&gt;&lt;br&gt;&nbsp;&nbsp; Principal Paid: $&#039; + princpaid + &#039;&lt;br&gt;&nbsp;&nbsp; Interest Paid: $&#039; + intpaid + &#039;&lt;br&gt;&nbsp;&nbsp; Principal Remaining: $&#039; + loan + &#039;&lt;br&gt;&#039;;
</code></pre></p>
<p>If you&#8217;re familiar with HTML and just have a basic knowledge of JavaScript, you can edit that to add all sorts of formatting goodness to your output.</p>
<p><p class="canchors"><a href="#introduction">Introduction</a> | Demonstration Calculator | <a href="#source-code">Source Code</a></p><br />
<a name="democalc"><h2>Demonstration Calculator</h2></a></p>
<p><script src="/sources/mortgage-with-amortization.js"></script><br />
<form id="wcbubba" name="wcbubba" action="javascript:void();"><br />
Loan Amount: <input type=text name="loan" size=8><br />
Loan Term: <input type=text name="term" size=8> years<br />
APR Interest: <input type=text name="apr" size=8><br /><ber></p>
<p><input type="submit" value="Calculate Payment" onClick="calcLoan();"> <b>Payment:</b> <input type=text name = "payment" size=9><br />
<input type="submit" value="Show Amortization" onClick="showAm();"><br />
</form></p>
<div id="amortsub">
</div>
<p></p>
<p><p class="canchors"><a name="introduction">Introduction</a> | <a href="#democalc">Demonstration Calculator</a> | Source Code</p><br />
<a name="source-code"><h2>Mortgage Calculator with Amortization Source Code</h2></a></p>
<p>This calculator is licensed to you under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a>.  If you would like to use the source code on your site or create a derivative work from it, you must include the following HTML on the page where the calculator appears.  We&#8217;re giving you this code for free with a legal license to use it.  All you have to do is credit us in the manner we specify.</p>
<p><b>Required Credit HTML</b><br />
<textarea style="width:400px;height:65px;font-size:11px;font-family:arial,helvetica;">Based on <a href="http://calculators-free.com/mortgage-calculator-with-amortization-11">Mortgage Calculator with Amortization</a> (<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">license</a>)</textarea></p>
<p><b>INSTALLATION</b></p>
<p>Just cut and paste the Javascript code and HTML form below into your page.  If you want to customize the appearance of the form, feel free.  Just make sure the input name and form id/name values are not changed.</p>
<div class="mycode"><pre><code>

&lt;script type=&quot;text/javascript&quot;&gt;

var amortsub = false;

function calcLoan() {

var formvals = getFormVal();

var years = formvals[0];
var months = years * 12;

var loan = formvals[2];
var apr = formvals[1];

var mpr = apr / 1200;
var nfactor = 0 - months;
var mofactor = Math.pow((1 + mpr), nfactor);
var bofactor = 1 - mofactor;
var tofactor = mpr / bofactor;

var payment = loan * tofactor;
var reducto = Math.round(payment*100)/100;

document.wcbubba.payment.value = &quot;$&quot;+reducto;

if (amortsub) showAm();

}

function showAm(){

amortsub = true;

formvals = getFormVal();

var years = formvals[0];
var months = years * 12;

var loan = formvals[2];
var apr = formvals[1];

var mpr = apr / 1200;
var nfactor = 0 - months;
var mofactor = Math.pow((1 + mpr), nfactor);
var bofactor = 1 - mofactor;
var tofactor = mpr / bofactor;

var payment = loan * tofactor;
var reducto = Math.round(payment*100)/100;

document.wcbubba.payment.value = &quot;$&quot;+reducto;

// NOW WE CALCULATE THE AMORTIZATION

var intpaid = 0;
var princpaid = 0;
var factsout = &quot;&quot;;
var inyear = 0;
var inmonth = 0;

document.getElementById(&#039;amortsub&#039;).innerHTML = &#039;&lt;b style=&quot;font-size:19px;&quot;&gt;MONTHLY AMORTIZATION&lt;/b&gt;&lt;br&gt;&lt;br&gt;&#039;;

for(var i=0;i&lt;months;i++){
intpaid = Math.round((mpr * loan) *100)/100;
princpaid = Math.round((reducto - intpaid)*100)/100;
loan = Math.round((loan - princpaid)*100)/100;

inyear = parseInt(i/12);
inmonth = i - (inyear * 12);

factsout += &#039;&lt;b&gt;Year &#039; + (inyear + 1) + &#039; Month &#039; + (inmonth +1) + &#039;:&lt;/b&gt;&lt;br&gt;&nbsp;&nbsp; Principal Paid: $&#039; + princpaid + &#039;&lt;br&gt;&nbsp;&nbsp; Interest Paid: $&#039; + intpaid + &#039;&lt;br&gt;&nbsp;&nbsp; Principal Remaining: $&#039; + loan + &#039;&lt;br&gt;&#039;;

}
document.getElementById(&#039;amortsub&#039;).innerHTML += factsout;

flush();

}

function getFormVal(){

var years = parseInt(document.wcbubba.term.value);
var loan = parseInt(document.wcbubba.loan.value);
var apr = parseFloat(document.wcbubba.apr.value);

if((years &lt;= 0)||(isNaN(years))) years = 1;
if((apr &lt;= 0)||(isNaN(apr))) apr = 1;
if((loan &lt;= 0)||(isNaN(loan))) loan = 1;

var mike = new Array(years,apr,loan);

return mike;
}

&lt;/script&gt;

&lt;form id=&quot;wcbubba&quot; name=&quot;wcbubba&quot; action=&quot;javascript:void();&quot;&gt;
Loan Amount: &lt;input type=text name=&quot;loan&quot; size=8&gt;&lt;br&gt;
Loan Term: &lt;input type=text name=&quot;term&quot; size=8&gt; years&lt;br&gt;
APR Interest: &lt;input type=text name=&quot;apr&quot; size=8&gt;&lt;br&gt;&lt;ber&gt;

&lt;input type=&quot;submit&quot; value=&quot;Calculate Payment&quot; onClick=&quot;calcLoan();&quot;&gt; &lt;b&gt;Payment:&lt;/b&gt; &lt;input type=text name = &quot;payment&quot; size=9&gt;&lt;br&gt;
&lt;input type=&quot;submit&quot; value=&quot;Show Amortization&quot; onClick=&quot;showAm();&quot;&gt;
&lt;/form&gt;&lt;br&gt;&lt;br&gt;

&lt;div id=&quot;amortsub&quot;&gt;

&lt;/div&gt; 
</code></pre></div>
]]></content:encoded>
			<wfw:commentRss>http://calculators-free.com/mortgage-calculator-with-amortization-11/feed</wfw:commentRss>
		</item>
		<item>
		<title>Body Mass Index (BMI) Calculator</title>
		<link>http://calculators-free.com/body-mass-index-bmi-calculator-10</link>
		<comments>http://calculators-free.com/body-mass-index-bmi-calculator-10#comments</comments>
		<pubDate>Fri, 27 Jun 2008 21:02:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Health &amp; Diet Calculators]]></category>

		<guid isPermaLink="false">http://calculators-free.com/?p=10</guid>
		<description><![CDATA[
Introduction &#124; Demonstration Calculator &#124; Source Code
How The Body Mass Index (BMI) Calculator Works
Body Mass Index (BMI) is a general indicator of whether or not you are maintaining a healthy weight based on the ratio of your weight to your height.  It&#8217;s an imperfect scale as it doesnt account for differences in body types. [...]]]></description>
			<content:encoded><![CDATA[<p>
<p class="canchors">Introduction | <a href="#democalc">Demonstration Calculator</a> | <a href="#source-code">Source Code</a></p><br />
<a name="introduction"><h2>How The Body Mass Index (BMI) Calculator Works</h2></a></p>
<p>Body Mass Index (BMI) is a general indicator of whether or not you are maintaining a healthy weight based on the ratio of your weight to your height.  It&#8217;s an imperfect scale as it doesnt account for differences in body types.  For example, a 5 foot 9 inch bodybuilder who weighs 215 pounds and has a 6% body fat would be labeled obese.  And there is already a new scale just for people from Southeast Asia where the ranges are lowered.</p>
<p>While it can be a good indicator of the healthiness of your weight if you fall within certain statistical norms that were used to develop it, it should be taken with a significant grain of salt and should not be used as a substitute for a professional evaluation of your health by a doctor. </p>
<p><p class="canchors"><a href="#introduction">Introduction</a> | Demonstration Calculator | <a href="#source-code">Source Code</a></p><br />
<a name="democalc"><h2>Demonstration Calculator</h2></a><br />
<script src="/sources/bmi.js"></script><form name="wcbubba" id="wcbubba" action="javascript:void()">Weight:<br /> <input type=text name="weight" size="6"><br />
<select name="units"><option value="pounds">pounds<option value="kilos">kg</select>
<p>Height:<br /> <input type=text name="height" size="6"><br />
<select name="hunits"><option value="inches">inches<option value="cm">cm</select>
<p><input type="submit" value="Calculate My BMI" onClick="calcBMI();"></form></p>
<div id="results" style="border:1px solid #000;padding:4px;font-size:15px;font-weight:bold;width:400px;">
Your BMI is:</p>
</div>
<p><p></p></p>
<p><p class="canchors"><a name="introduction">Introduction</a> | <a href="#democalc">Demonstration Calculator</a> | Source Code</p><br />
<a name="source-code"><h2>Body Mass Index (BMI) Calculator Source Code</h2></a></p>
<p>This calculator is licensed to you under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a>.  If you would like to use the source code on your site or create a derivative work from it, you must include the following HTML on the page where the calculator appears.  We&#8217;re giving you this code for free with a legal license to use it.  All you have to do is credit us in the manner we specify.</p>
<p><b>Required Credit HTML</b><br />
<textarea style="width:400px;height:65px;font-size:11px;font-family:arial,helvetica;">Based on <a href="http://calculators-free.com/simple-mortgage-payment-calculator-1">Body Mass Index (BMI) Calculator</a> (<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">license</a>)</textarea></p>
<p><b>INSTALLATION</b></p>
<p>Just cut and paste the Javascript code and HTML form below into your page.  If you want to customize the appearance of the form, feel free.  Just make sure the input name and form id/name values are not changed.</p>
<div class="mycode"><pre><code>&lt;script type=&quot;text/javascript&quot;&gt;

function calcBMI(){

// Get Variables and validate to make sure they&#039;re numbers, 
// setting them to a value of 1 if they&#039;re not.

var weight = (isNaN(document.wcbubba.weight.value)) ? 1 : document.wcbubba.weight.value;

if (weight == 0) alert(&quot;Results will be inaccurate.&nbsp;&nbsp;Weight is not a valid number.&quot;);

var height = (isNaN(document.wcbubba.height.value)) ? 1 : document.wcbubba.height.value;

if (height == 0) alert(&quot;Results will be inaccurate.&nbsp;&nbsp;Height is not a valid number.&quot;);

// set multipliers based on whether metric or English units were selected

var wmult = (document.wcbubba.units.value == &quot;pounds&quot;) ? 2.204 : 1;

// Turns inches/centimeters into meters

var hmult = (document.wcbubba.hunits.value == &quot;inches&quot;) ? .0254 : .01;

// Do the calculation (weight in kg divided by the height in meters 
// times itself). The multiplication by 10 and then division by ten
// work in conjunction with Math.round() to round the value to one
// decimal place of precision.

var BMI = Math.round(((weight / wmult)/((height * hmult)*(height * hmult))) *10)/10;

// get the analysis - note this is for general purpose, there is a separate scale for
// Southeast Asian people and there may be more variants on the way

var result = &quot;&quot;;
if(BMI &lt; 16.5) result = &quot;severely underweight&quot;;
else if((BMI &gt;=16.5)&amp;&amp;(BMI&lt;=18.49)) result = &quot;underweight&quot;;
else if((BMI &gt;=18.5)&amp;&amp;(BMI&lt;=25)) result = &quot;normal&quot;;
else if((BMI &gt;=25.01)&amp;&amp;(BMI&lt;=30)) result = &quot;overweight&quot;;
else if((BMI &gt;=30.01)&amp;&amp;(BMI&lt;=35)) result = &quot;obese&quot;;
else if((BMI &gt;=35.01)&amp;&amp;(BMI&lt;=40)) result = &quot;clinically obese&quot;;
else result = &quot;morbidly obese&quot;;

document.getElementById(&#039;results&#039;).innerHTML = &quot;Your Body Mass Index (BMI) is: &quot; + BMI + &quot;.&lt;br&gt;&lt;br&gt;This would be considered &quot; + result + &quot;.&quot;;

}
&lt;/script&gt;

&lt;form name=&quot;wcbubba&quot; id=&quot;wcbubba&quot; action=&quot;javascript:void()&quot;&gt;
Weight:&lt;br&gt; &lt;input type=text name=&quot;weight&quot; size=&quot;6&quot;&gt; &lt;select name=&quot;units&quot;&gt;&lt;option value=&quot;pounds&quot;&gt;pounds&lt;option value=&quot;kilos&quot;&gt;kg&lt;/select&gt;&lt;br&gt;&lt;br&gt;

Height:&lt;br&gt; &lt;input type=text name=&quot;height&quot; size=&quot;6&quot;&gt; &lt;select name=&quot;hunits&quot;&gt;&lt;option value=&quot;inches&quot;&gt;inches&lt;option value=&quot;cm&quot;&gt;cm&lt;/select&gt;&lt;br&gt;&lt;br&gt;

&lt;input type=&quot;submit&quot; value=&quot;Calculate My BMI&quot; onClick=&quot;calcBMI();&quot;&gt;&lt;/form&gt;&lt;br&gt;

&lt;div id=&quot;results&quot; style=&quot;border:1px solid #000;padding:4px;font-size:15px;font-weight:bold;width:400px;&quot;&gt;
Your BMI is:&lt;br&gt;&lt;br&gt;
&lt;/div&gt;

</code></pre></div>
]]></content:encoded>
			<wfw:commentRss>http://calculators-free.com/body-mass-index-bmi-calculator-10/feed</wfw:commentRss>
		</item>
		<item>
		<title>BMR And Daily Calories Burned Calculator</title>
		<link>http://calculators-free.com/bmr-and-daily-calories-burned-calculator-9</link>
		<comments>http://calculators-free.com/bmr-and-daily-calories-burned-calculator-9#comments</comments>
		<pubDate>Fri, 27 Jun 2008 18:20:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Health &amp; Diet Calculators]]></category>

		<guid isPermaLink="false">http://calculators-free.com/?p=9</guid>
		<description><![CDATA[
Introduction &#124; Demonstration Calculator &#124; Source Code
How The BMR &#038; Daily Calories Burned Calculator Works
How many calories do you need to eat in a day to maintain your current weight?  That&#8217;s different for each and every individual.  The only way to get a highly accurate number is a lab test where you sleep [...]]]></description>
			<content:encoded><![CDATA[<p>
<p class="canchors">Introduction | <a href="#democalc">Demonstration Calculator</a> | <a href="#source-code">Source Code</a></p><br />
<a name="introduction"><h2>How The BMR &#038; Daily Calories Burned Calculator Works</h2></a></p>
<p>How many calories do you need to eat in a day to maintain your current weight?  That&#8217;s different for each and every individual.  The only way to get a highly accurate number is a lab test where you sleep at the lab and they take measurements right as you wake up from 8 hours of sleep and at least 12 hours of fasting.  </p>
<p>This calculator uses the formula for <strong>Basal Metabolic Rate (BMR)</strong> devised by doctors at the University of Nevada Medical School and published in the <i>American Journal of Clinical Nutrition</i> in 1990, then uses the Harris Benedict activity multiplier to determine your estimated daily caloric burn off.</p>
<p>Remember that the <strong>Basal Metabolic Rate</strong> is how many calories you&#8217;d need to maintain your body weight if all you did all day was lay in bed and your only activity was eating.  Just sitting up and typing a a few hours a day, walking from the couch to your car, from the car to your office, etc. boosts your daily needs up by 20%.  If you lead a lifestyle where you have high levels of exertion every day, it can nearly double your calorie needs.</p>
<p>Just fill out the fields in the form below and click &#8220;calculate my calorie needs&#8221; to get your BMR and your daily calorie needs.</p>
<p><p class="canchors"><a href="#introduction">Introduction</a> | Demonstration Calculator | <a href="#source-code">Source Code</a></p><br />
<a name="democalc"><h2>Demonstration Calculator</h2></a></p>
<p><script src="/sources/calories.js"></script></p>
<p><form name="wcbubba" id="wcbubba" action="javascript:void()"><br />
Weight:<br /> <input type=text name="weight" size="6"><br />
<select name="units"><option value="pounds">pounds<option value="kilos">kg</select>
<p><p>Age:<br /><input type=text name="age" size="6"> (in years)</p></p>
<p>Gender:<br />
<select name="gender"><option value="male">male<option value="female">female</select>
<p>Height:<br /> <input type=text name="height" size="6"><br />
<select name="hunits"><option value="inches">inches<option value="cm">cm</select>
<p>Activity Level:<br /> <br />
<select name="activity">
<option value="1.2">Little or no exercise and desk job<br />
<option value="1.375">Lightly strenuous exercise or casual sports 1-3 days a week<br />
<option value="1.55">Moderately strenuous exercise or somewhat aggressive sports 3-5 days a week<br />
<option value="1.725">Strenuous exercise or aggressive sports 6-7 days a week<br />
<option value="1.9">Strenuous daily exercise or aggressive sports and a physically active job</select>
<p><input type="submit" value="Calculate My Calorie Needs" onClick="calcNeeds();"></form></p>
<div id="results" style="border:1px solid #000;padding:4px;font-size:15px;font-weight:bold;width:400px;">
Your Basal Metabolic Rate is:</p>
<p><p>Your Average Daily Calorie Need is:</p>
</div>
<p><p></p></p>
<p><p class="canchors"><a name="introduction">Introduction</a> | <a href="#democalc">Demonstration Calculator</a> | Source Code</p><br />
<a name="source-code"><h2>Daily Calorie Needs Calculator Source Code</h2></a></p>
<p>This calculator is licensed to you under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a>.  If you would like to use the source code on your site or create a derivative work from it, you must include the following HTML on the page where the calculator appears.  We&#8217;re giving you this code for free with a legal license to use it.  All you have to do is credit us in the manner we specify.</p>
<p><b>Required Credit HTML</b><br />
<textarea style="width:400px;height:65px;font-size:11px;font-family:arial,helvetica;">Based on <a href="http://calculators-free.com/simple-mortgage-payment-calculator-1">Daily Calorie Needs Calculator</a> (<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">license</a>)</textarea></p>
<p><b>INSTALLATION</b></p>
<p>Just cut and paste the Javascript code and HTML form below into your page.  If you want to customize the appearance of the form, feel free.  Just make sure the input name and form id/name values are not changed.</p>
<div class="mycode"><pre><code>

&lt;script type=&quot;text/javascript&quot;&gt;

function calcNeeds(){

var weight = (isNaN(document.wcbubba.weight.value)) ? 0 : document.wcbubba.weight.value;
if (weight == 0) alert(&quot;Results will be inaccurate.&nbsp;&nbsp;Weight is not a valid number.&quot;);
var height = (isNaN(document.wcbubba.height.value)) ? 0 : document.wcbubba.height.value;
if (height == 0) alert(&quot;Results will be inaccurate.&nbsp;&nbsp;Height is not a valid number.&quot;);
var age = (isNaN(document.wcbubba.height.value)) ? 0 : document.wcbubba.age.value;
if (age == 0) alert(&quot;Results will be inaccurate.&nbsp;&nbsp;Age is not a valid number.&quot;);
var activity = (isNaN(document.wcbubba.activity.value)) ? 0 : document.wcbubba.activity.value;

var wmult = (document.wcbubba.units.value == &quot;pounds&quot;) ? 2.204 : 1;
var hmult = (document.wcbubba.hunits.value == &quot;inches&quot;) ? 2.54 : 1;
var genvar = (document.wcbubba.gender.value == &quot;male&quot;) ? 5 : -161;

var BMR = Math.round((((weight / wmult) * 9.99) + ((height * hmult) * 6.25) - (age * 4.92) + genvar) * 1);

var calburn = Math.round((((weight / wmult) * 9.99) + ((height * hmult) * 6.25) - (age * 4.92) + genvar) * activity);

document.getElementById(&#039;results&#039;).innerHTML = &quot;Your Basal Metabolic Rate is: &quot; + BMR + &quot; calories.&lt;br&gt;&lt;br&gt;Your Average Daily Calorie Need Is: &quot; + calburn + &quot; calories&quot;;

}
&lt;/script&gt;

&lt;form name=&quot;wcbubba&quot; id=&quot;wcbubba&quot; action=&quot;javascript:void()&quot;&gt;
Weight:&lt;br&gt; &lt;input type=text name=&quot;weight&quot; size=&quot;6&quot;&gt; &lt;select name=&quot;units&quot;&gt;&lt;option value=&quot;pounds&quot;&gt;pounds&lt;option value=&quot;kilos&quot;&gt;kg&lt;/select&gt;&lt;br&gt;&lt;br&gt;
Age:&lt;br&gt;&lt;input type=text name=&quot;age&quot; size=&quot;6&quot;&gt; (in years)&lt;br&gt;&lt;br&gt;
Gender:&lt;br&gt;&lt;select name=&quot;gender&quot;&gt;&lt;option value=&quot;male&quot;&gt;male&lt;option value=&quot;female&quot;&gt;female&lt;/select&gt;&lt;br&gt;&lt;br&gt;
Height:&lt;br&gt; &lt;input type=text name=&quot;height&quot; size=&quot;6&quot;&gt; &lt;select name=&quot;hunits&quot;&gt;&lt;option value=&quot;inches&quot;&gt;inches&lt;option value=&quot;cm&quot;&gt;cm&lt;/select&gt;&lt;br&gt;&lt;br&gt;
Activity Level:&lt;br&gt; &lt;select name=&quot;activity&quot;&gt;
&lt;option value=&quot;1.2&quot;&gt;Little or no exercise and desk job
&lt;option value=&quot;1.375&quot;&gt;Lightly strenuous exercise or casual sports 1-3 days a week
&lt;option value=&quot;1.55&quot;&gt;Moderately strenuous exercise or somewhat aggressive sports 3-5 days a week
&lt;option value=&quot;1.725&quot;&gt;Strenuous exercise or aggressive sports 6-7 days a week
&lt;option value=&quot;1.9&quot;&gt;Strenuous daily exercise or aggressive sports and a physically active job&lt;/select&gt;&lt;br&gt;&lt;br&gt;
&lt;input type=&quot;submit&quot; value=&quot;Calculate My Calorie Needs&quot; onClick=&quot;calcNeeds();&quot;&gt;&lt;/form&gt;&lt;br&gt;
&lt;div id=&quot;results&quot; style=&quot;border:1px solid #000;padding:4px;font-size:15px;font-weight:bold;width:400px;&quot;&gt;
Your Basal Metabolic Rate is:&lt;br&gt;&lt;br&gt;
Your Average Daily Calorie Need is:
&lt;/div&gt;

</code></pre></div>
]]></content:encoded>
			<wfw:commentRss>http://calculators-free.com/bmr-and-daily-calories-burned-calculator-9/feed</wfw:commentRss>
		</item>
		<item>
		<title>Fun Google Compatibility Calculator</title>
		<link>http://calculators-free.com/fungoogle-compatibility-calculator-8</link>
		<comments>http://calculators-free.com/fungoogle-compatibility-calculator-8#comments</comments>
		<pubDate>Fri, 27 Jun 2008 04:06:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Fun Calculators]]></category>

		<guid isPermaLink="false">http://calculators-free.com/?p=8</guid>
		<description><![CDATA[
Introduction &#124; Demonstration Calculator &#124; Source Code
How The Google Compatibility Calculator Works
Enter your name and the name of the person you want to be matched with into the appropriate boxes in the calculator, then click &#8220;Calculate Our Compatibility&#8221;.  A client-side JavaScript uses AJAX to query Google for the number of search results that come [...]]]></description>
			<content:encoded><![CDATA[<p>
<p class="canchors">Introduction | <a href="#democalc">Demonstration Calculator</a> | <a href="#source-code">Source Code</a></p><br />
<a name="introduction"><h2>How The Google Compatibility Calculator Works</h2></a></p>
<p>Enter your name and the name of the person you want to be matched with into the appropriate boxes in the calculator, then click &#8220;Calculate Our Compatibility&#8221;.  A client-side JavaScript uses AJAX to query Google for the number of search results that come up for each name at Google. It then uses those numbers to determine a compatibility score.</p>
<p><p class="canchors"><a href="#introduction">Introduction</a> | Demonstration Calculator | <a href="#source-code">Source Code</a></p><br />
<a name="democalc"><h2>Demonstration Calculator</h2></a></p>
<p><script src="/sources/popucalc.js"></script></p>
<div style="border:2px solid #222;margin:5px;padding:5px;width:350px;"><h3>GOOGLE COMPATIBILITY CALCULATOR</H3><br />
<form name="popcalc" action="javascript:void();"><br />
Your Name: <input size=20 name="firstname" id="firstname" type=text> <br />
Crush&#8217;s Name: <input size=20 name="secondname" id="secondname" type=text><br />
<input type="submit" value="Calculate Our Compatibility" onClick="popucalc()";><br />
</form></p>
<div id="calcresults" style="height:100px;"></div>
<p>
</div>
<p></p>
<p><p class="canchors"><a name="introduction">Introduction</a> | <a href="#democalc">Demonstration Calculator</a> | Source Code</p><br />
<a name="source-code"><h2>Fun Google Compatibility Calculator Source Code</h2></a></p>
<p>This calculator is licensed to you under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a>.  If you would like to use the source code on your site or create a derivative work from it, you must include the following HTML on the page where the calculator appears.  We&#8217;re giving you this code for free with a legal license to use it.  All you have to do is credit us in the manner we specify.</p>
<p><b>Required Credit HTML</b><br />
<textarea style="width:400px;height:65px;font-size:11px;font-family:arial,helvetica;">Based on <a href="http://calculators-free.com/fun-google-compatibility-calculator-8">Fun Google Compatibility Calculator</a> (<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">license</a>)</textarea></p>
<p><b>INSTALLATION</b></p>
<p>Download <a href="/sources/popucalc.zip">popucalc.zip</a>.  In it you will find the three graphics, PHP script for querying Google via their RESTful search API, an HTML file with the AJAX JavaScript and the search form, plus a README file with further instructions on getting it running.</p>
<p>Here are the two source files if you&#8217;d like to examine them.</p>
<p><b>JavaScript &#038; HTML source code</b></p>
<div class="mycode"><pre><code>
&lt;script type=&quot;text/javascript&quot;&gt;

var firstval = &quot;&quot;;
var secondval = &quot;&quot;;
var firstdone = false;
var seconddone = false;
var offset=3;

function popucalc(){

document.getElementById(&#039;calcresults&#039;).innerHTML = &#039;&lt;b&gt;Calculating&lt;/b&gt;&lt;br /&gt;&lt;img src=&quot;/images/pleasewait.gif&quot;&gt;&#039;;

var firstname = escape(document.popcalc.firstname.value);
var getURL = &#039;popucalc.php?SP=&#039; + firstname;
parseName(getURL,&#039;first name&#039;);

var secondname = escape(document.popcalc.secondname.value);
getURL = &#039;popucalc.php?SP=&#039; + secondname;
parseName(getURL,&#039;second name&#039;);

}

function parseName(getURL,nameID)
{
var xmlHttp;
try
&nbsp;&nbsp;{
&nbsp;&nbsp;// Firefox, Opera 8.0+, Safari
&nbsp;&nbsp;xmlHttp=new XMLHttpRequest();
&nbsp;&nbsp;}
catch (e)
&nbsp;&nbsp;{
&nbsp;&nbsp;// Internet Explorer
&nbsp;&nbsp;try
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;xmlHttp=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;catch (e)
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;try
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xmlHttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;catch (e)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;Your browser does not support AJAX!&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;}

//this is the part that processes the incoming data
&nbsp;&nbsp;&nbsp;&nbsp;xmlHttp.onreadystatechange=function()
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;if(xmlHttp.readyState==4)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var myresults = xmlHttp.responseText; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parseResults(myresults,nameID);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;}

//This is the part that sends it
&nbsp;&nbsp;xmlHttp.open(&quot;get&quot;,getURL,true);
&nbsp;&nbsp;xmlHttp.send(null);
&nbsp;&nbsp;
&nbsp;&nbsp;
&nbsp;&nbsp;}
function parseResults(result,nameID){
&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;if(nameID == &#039;first name&#039;) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; firstval = (isNaN(parseInt(result))) ? 0 : parseInt(result);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;firstdone = true;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else if (nameID == &quot;second name&quot;){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;secondval = (isNaN(parseInt(result))) ? 0 : parseInt(result);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;seconddone = true;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp; if((firstdone)&amp;&amp;(seconddone)) showresults(); 
 }
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
function showresults(){
&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp; var topper;
&nbsp;&nbsp;&nbsp;&nbsp; var bottomer;
&nbsp;&nbsp;&nbsp;&nbsp; firstdone=false;
&nbsp;&nbsp;&nbsp;&nbsp; seconddone=false;
&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp; if(firstval &gt; secondval){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bottomer = firstval;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;topper = secondval;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;topper = firstval;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bottomer = secondval;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}

&nbsp;&nbsp;&nbsp;&nbsp; var popindex;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((topper == 0)||(bottomer==0)){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; popindex = 0;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var popindex = (topper/bottomer);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;popindex = Math.round(popindex*1000)/1000
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var popcover = Math.round(200 - ((popindex * 190) + 10));
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var popamt = Math.round(popindex * 1000)/10;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; var resultspot = document.getElementById(&#039;calcresults&#039;);
&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp; var resout = &#039;&lt;b&gt;Matched: &#039; + popamt + &#039;% &lt;/b&gt;&lt;br&gt;&#039; + document.popcalc.firstname.value + &#039; and &#039; + document.popcalc.secondname.value + &#039;&lt;br&gt;&#039;;
&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp; resout += &#039;&lt;div style=&quot;width:210px;height:35px;padding:5px;border:1pt solid #222;font-size:12px;&quot;&gt;&lt;div style=&quot;width:100px;float:left;text-align:left&quot;&gt;Cool&lt;/div&gt;&lt;div style=&quot;width:100px;float:left;text-align:right&quot;&gt;Scorching&lt;/div&gt;&lt;br style=&quot;clear:all&quot;&gt;&#039;;

&nbsp;&nbsp;&nbsp;&nbsp; var quoter = &quot;&#039;/images/pcgradient.gif&#039;&quot;;

&nbsp;&nbsp;&nbsp;&nbsp; resout += &#039;&lt;div style=&quot;width:200px;height:20px;margin:0px;padding:0px; background:url(&#039;+quoter+&#039;);text-align:right;&quot;&gt;&lt;img src=&quot;/images/pcwhite.gif&quot; height=20 width=&#039; + popcover + &#039; style=&quot;margin:0px;padding:opx;border:none;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&#039;;
&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp; resultspot.innerHTML = resout;

&nbsp;&nbsp; }
&nbsp;&nbsp;
&nbsp;&nbsp;
&lt;/script&gt;

&lt;div style=&quot;border:2px solid #222;margin:5px;padding:5px;width:350px;&quot;&gt;&lt;h3&gt;GOOGLE COMPATIBILITY CALCULATOR&lt;/H3&gt;
&lt;form name=&quot;popcalc&quot; action=&quot;javascript:void();&quot;&gt;
Your Name: &lt;input size=20 name=&quot;firstname&quot; id=&quot;firstname&quot; type=text&gt; &lt;br&gt;
Crush&#039;s Name: &lt;input size=20 name=&quot;secondname&quot; id=&quot;secondname&quot; type=text&gt;&lt;br&gt;
&lt;input type=&quot;submit&quot; value=&quot;Calculate Our Compatibility&quot; onClick=&quot;popucalc()&quot;;&gt;
&lt;/form&gt;
&lt;div id=&quot;calcresults&quot; style=&quot;height:100px;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;

</code></pre></div>
<p><br/></p>
<p><p><b>PHP source code</b></p></p>
<div class="mycode"><pre><code>
&lt;?php

$searchphrase = $_REQUEST[&quot;SP&quot;];

$searchphrase = str_replace(&quot;&quot;&quot;,&quot;&quot;,$searchphrase);
$searchphrase = str_replace(&quot;%22&quot;,&quot;&quot;,$searchphrase);

$searchphrase=urlencode($searchphrase);

$booboo = passnum($searchphrase);

echo $booboo;

function passnum($searchphrase){

$url = &quot;http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=%22&quot; . $searchphrase . &quot;%22&quot;;

// sendRequest
// note how referer is set manually
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, &quot;http://www.mysite.com/index.html&quot;);
$body = curl_exec($ch);
curl_close($ch);

// now, process the JSON string
$json = json_decode($body, true);
// now have some fun with the results...

$sam = $json[&quot;responseData&quot;][&quot;cursor&quot;][&quot;estimatedResultCount&quot;];

return $sam;
}

?&gt;
</code></pre></div>
]]></content:encoded>
			<wfw:commentRss>http://calculators-free.com/fungoogle-compatibility-calculator-8/feed</wfw:commentRss>
		</item>
		<item>
		<title>Simple Auto Loan Calculator</title>
		<link>http://calculators-free.com/simple-auto-loan-calculator-7</link>
		<comments>http://calculators-free.com/simple-auto-loan-calculator-7#comments</comments>
		<pubDate>Thu, 26 Jun 2008 00:25:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Loan Calculators]]></category>

		<guid isPermaLink="false">http://calculators-free.com/?p=7</guid>
		<description><![CDATA[
Introduction &#124; Demonstration Calculator &#124; Source Code
How The Auto Loan Payment Calculator Works
This is a very simple calculator for calculating an auto loan payment.  Enter in the amount of the loan, the number of months the loan is for, and the APR.  Then click &#8220;Calculate Payment&#8221; to get your monthly auto loan payment.
If [...]]]></description>
			<content:encoded><![CDATA[<p>
<p class="canchors">Introduction | <a href="#democalc">Demonstration Calculator</a> | <a href="#source-code">Source Code</a></p><br />
<a name="introduction"><h2>How The Auto Loan Payment Calculator Works</h2></a></p>
<p>This is a very simple calculator for calculating an auto loan payment.  Enter in the amount of the loan, the number of months the loan is for, and the APR.  Then click &#8220;Calculate Payment&#8221; to get your monthly auto loan payment.</p>
<p>If you change the values, click the &#8220;Calculate Payment&#8221; button again to get a new result.</p>
<p><p class="canchors"><a href="#introduction">Introduction</a> | Demonstration Calculator | <a href="#source-code">Source Code</a></p><br />
<a name="democalc"><h2>Demonstration Calculator</h2></a><script src="/sources/calculator-auto-simple.js"></script><br />
<b>Simple Auto Loan Calculator</b></p>
<p><form id="wcbubba" name="wcbubba" action="javascript:void();"></p>
<p>Loan Amount: <input type=text name="loan" size=8></p>
<p>Loan Term: <input type=text name="term" size=8> months</p>
<p>APR Interest: <input type=text name="apr" size=8></p>
<p><input type="submit" value="Calculate Payment" onClick="calcLoan();"> </p>
<p><b>Payment:</b> <input type=text name = "payment" size=9><br />
</form></p></p>
<p></p>
<p><p class="canchors"><a href="#introduction">Introduction</a> | <a href="#democalc">Demonstration Calculator</a> | Source Code</p><br />
<a name="source-code"><h2>Simple Auto Loan Payment Calculator Source Code</h2></a></p>
<p>This calculator is licensed to you under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a>.  If you would like to use the source code on your site or create a derivative work from it, you must include the following HTML on the page where the calculator appears.  We&#8217;re giving you this code for free with a legal license to use it.  All you have to do is credit us in the manner we specify.</p>
<p><b>Required Credit HTML</b><br />
<textarea style="width:400px;height:65px;font-size:11px;font-family:arial,helvetica;">Based on <a href="http://calculators-free.com/simple-auto-loan-calculator-7">Simple Auto Loan Payment Calculator</a> (<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">license</a>)</textarea></p>
<p><b>INSTALLATION</b></p>
<p>Just cut and paste the Javascript code and HTML form below into your page.  If you want to customize the appearance of the form, feel free.  Just make sure the input name and form id/name values are not changed.</p>
<div class="mycode"><pre><code>
&lt;script type=&quot;text/javascript&quot;&gt;
function calcLoan() {

var formvals = getFormVal();

var months = formvals[0];

var loan = formvals[2];
var apr = formvals[1];

var mpr = apr / 1200;
var nfactor = 0 - months;
var mofactor = Math.pow((1 + mpr), nfactor);
var bofactor = 1 - mofactor;
var tofactor = mpr / bofactor;

var payment = loan * tofactor;
var reducto = Math.round(payment*100)/100;

document.wcbubba.payment.value = &quot;$&quot;+reducto;

if (amortsub) showAm();

}

function getFormVal(){

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var years = parseInt(document.wcbubba.term.value);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var loan = parseInt(document.wcbubba.loan.value);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var apr = parseFloat(document.wcbubba.apr.value);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((years &lt;= 0)||(isNaN(years))) years = 1;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((apr &lt;= 0)||(isNaN(apr))) apr = 1;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((loan &lt;= 0)||(isNaN(loan))) loan = 1;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var mike = new Array(years,apr,loan);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return mike;
}
&lt;/script&gt;

&lt;form id=&quot;wcbubba&quot; name=&quot;wcbubba&quot; action=&quot;javascript:void();&quot;&gt;

Loan Amount: &lt;input type=text name=&quot;loan&quot; size=8&gt;

Loan Term: &lt;input type=text name=&quot;term&quot; size=8&gt; months

APR Interest: &lt;input type=text name=&quot;apr&quot; size=8&gt;

&lt;br /&gt;&lt;br /&gt;

&lt;input type=&quot;submit&quot; value=&quot;Calculate Payment&quot; onClick=&quot;calcLoan();&quot;&gt; 

&lt;br /&gt;&lt;br /&gt;

&lt;b&gt;Payment:&lt;/b&gt; &lt;input type=text name = &quot;payment&quot; size=9&gt;&lt;br&gt;
&lt;/form&gt;&lt;/p&gt;
</code></pre></div>
]]></content:encoded>
			<wfw:commentRss>http://calculators-free.com/simple-auto-loan-calculator-7/feed</wfw:commentRss>
		</item>
		<item>
		<title>Simple Mortgage Payment Calculator</title>
		<link>http://calculators-free.com/simple-mortgage-payment-calculator-1</link>
		<comments>http://calculators-free.com/simple-mortgage-payment-calculator-1#comments</comments>
		<pubDate>Tue, 24 Jun 2008 22:22:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Loan Calculators]]></category>

		<guid isPermaLink="false">http://calculators-free.com/?p=1</guid>
		<description><![CDATA[
Introduction &#124; Demonstration Calculator &#124; Source Code
How The Mortgage Payment Calculator Works
This is a very simple calculator for calculating a mortgage payment.  Enter in the amount of the loan, the number of years the loan is for, and the APR.  Then click &#8220;Calculate Payment&#8221; to get your monthly mortgage payment.
If you change the [...]]]></description>
			<content:encoded><![CDATA[<p>
<p class="canchors">Introduction | <a href="#democalc">Demonstration Calculator</a> | <a href="#source-code">Source Code</a></p><br />
<a name="introduction"><h2>How The Mortgage Payment Calculator Works</h2></a></p>
<p>This is a very simple calculator for calculating a mortgage payment.  Enter in the amount of the loan, the number of years the loan is for, and the APR.  Then click &#8220;Calculate Payment&#8221; to get your monthly mortgage payment.</p>
<p>If you change the values, click the &#8220;Calculate Payment&#8221; button again to get a new result.</p>
<p><p class="canchors"><a href="#introduction">Introduction</a> | Demonstration Calculator | <a href="#source-code">Source Code</a></p><br />
<a name="democalc"><h2>Demonstration Calculator</h2></a><script src="/sources/calculator-mortgage-simple.js"></script><br />
<b>Simple Mortgage Calculator</b></p>
<p><form id="wcbubba" name="wcbubba" action="javascript:void();"></p>
<p>Loan Amount: <input type=text name="loan" size=8></p>
<p>Loan Term: <input type=text name="term" size=8> years</p>
<p>APR Interest: <input type=text name="apr" size=8></p>
<p><input type="submit" value="Calculate Payment" onClick="calcLoan();"> </p>
<p><b>Payment:</b> <input type=text name = "payment" size=9><br />
</form></p></p>
<p></p>
<p><p class="canchors"><a name="introduction">Introduction</a> | <a href="#democalc">Demonstration Calculator</a> | Source Code</p><br />
<a name="source-code"><h2>Simple Mortgage Payment Calculator Source Code</h2></a></p>
<p>This calculator is licensed to you under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a>.  If you would like to use the source code on your site or create a derivative work from it, you must include the following HTML on the page where the calculator appears.  We&#8217;re giving you this code for free with a legal license to use it.  All you have to do is credit us in the manner we specify.</p>
<p><b>Required Credit HTML</b><br />
<textarea style="width:400px;height:65px;font-size:11px;font-family:arial,helvetica;">Based on <a href="http://calculators-free.com/simple-mortgage-payment-calculator-1">Simple Mortgage Payment Calculator</a> (<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">license</a>)</textarea></p>
<p><b>INSTALLATION</b></p>
<p>Just cut and paste the Javascript code and HTML form below into your page.  If you want to customize the appearance of the form, feel free.  Just make sure the input name and form id/name values are not changed.</p>
<div class="mycode"><pre><code>
&lt;script type=&quot;text/javascript&quot;&gt;
function calcLoan() {

var formvals = getFormVal();

var years = formvals[0];
var months = years * 12;

var loan = formvals[2];
var apr = formvals[1];

var mpr = apr / 1200;
var nfactor = 0 - months;
var mofactor = Math.pow((1 + mpr), nfactor);
var bofactor = 1 - mofactor;
var tofactor = mpr / bofactor;

var payment = loan * tofactor;
var reducto = Math.round(payment*100)/100;

document.wcbubba.payment.value = &quot;$&quot;+reducto;

if (amortsub) showAm();

}

function getFormVal(){

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var years = parseInt(document.wcbubba.term.value);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var loan = parseInt(document.wcbubba.loan.value);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var apr = parseFloat(document.wcbubba.apr.value);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((years &lt;= 0)||(isNaN(years))) years = 1;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((apr &lt;= 0)||(isNaN(apr))) apr = 1;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((loan &lt;= 0)||(isNaN(loan))) loan = 1;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var mike = new Array(years,apr,loan);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return mike;
}
&lt;/script&gt;

&lt;form id=&quot;wcbubba&quot; name=&quot;wcbubba&quot; action=&quot;javascript:void();&quot;&gt;

Loan Amount: &lt;input type=text name=&quot;loan&quot; size=8&gt;

Loan Term: &lt;input type=text name=&quot;term&quot; size=8&gt; years

APR Interest: &lt;input type=text name=&quot;apr&quot; size=8&gt;

&lt;br /&gt;&lt;br /&gt;

&lt;input type=&quot;submit&quot; value=&quot;Calculate Payment&quot; onClick=&quot;calcLoan();&quot;&gt; 

&lt;br /&gt;&lt;br /&gt;

&lt;b&gt;Payment:&lt;/b&gt; &lt;input type=text name = &quot;payment&quot; size=9&gt;&lt;br&gt;
&lt;/form&gt;&lt;/p&gt;
</code></pre></div>
]]></content:encoded>
			<wfw:commentRss>http://calculators-free.com/simple-mortgage-payment-calculator-1/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
