Recent Posts by Flavio M Galizia

How to set up a web mail account in your iphone

1.Go to “Settings” and tap on “Mail, Contact, Calendars”

2. Tap on “Add Account …”

3. Select “Other” from the list

4.Tap on “Add mail account”

5.Enter all the information for the new account

6. Select “IMAP” on top of the screen and enter the IMAP
account information, scroll down ….

For the incoming mail server use the host name mail.yourdomain.com
For the Outgoing Mail Server you should also use the host name mail.yourdomain.com

NOTE:
Under Outgoing Mail Server, the fields for username and password show the word “OPTIONAL” , however, you must enter the information again.

Screenshots on this blog were taken from iphone designed by Apple Inc

iphone_photo_1 iphone_photo2
iphone_photo3 iphone_photo4
iphone_photo5 iphone-imap-screen

 

HTML/JavaScript form to calculate payments using APR



How much would you like to pay?:

Negotiated price:*
Sales tax:*
 %
Term:
Interest Rate:*
 %
Down payment:
 

Your estimated monthly payment is:

0

The form you see above is a form that calculates monthly payments, i.e car loan payments.
It could be also used as a mortage calculator if you make some changes to the formula.
Below you will find the HTML and Java Script code used to build the form.

Html source code:

<form>
<td width=”94″>Negotiated price:*</td>
<td width=”165″><input type= “text” name=”nprice” /></td>
</tr>
<tr>
<td>Sales tax:*</td>
<td><input type=”text” name=”tax”/></td>
<td width=”53″>%</td>
</tr>
<tr>
<td height=”31″>Term:</td>
<td><select name=”term”>
<option value=”36″>36 months</option>
<option value=”48″>48 months</option>
<option value=”60″>60 months</option>
</select> </td>
</tr>
<tr>
<td>Interest Rate:*</td>
<td><label>
<input type=”irate” name=”rate”/>
</label> </td>
<td>%</td>
</tr>
<tr>
<td>Down payment:</td>
<td><label>
<input type=”downpayment” name=”payment” />
</label> </td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name=”Input” type=”button” value=”Calculate payments” onclick=”calcpayments()”/></td>
<td><input name=”reset2″ type=”reset” value=”Clear” /></td>
</tr>
</table>
<br />
<b>Your estimated monthly payment is:</b>
<div id=”monthlypayment”></div>
</form>

Java Script source code for the calculation:

<script>function calcpayments()

{

//The five variables we are going to use in the formula

var nprice=document.forms[0].nprice.value*1;
var salestax=document.forms[0].tax.value*1;
var interest=document.forms[0].rate.value*1;
var dpayment=document.forms[0].payment.value*1;

var t;

//We used a loop to select the term for the payments

for (i=0; i<document.forms[0].term.options.length; i++)

{

if (document.forms[0].term.options[i].selected)
t = document.forms[0].term.options[i].value*1;
}

//This is the formula that does the math

var result=(nprice*(salestax/100 +1)-dpayment)*((interest/100)/12) / (1-Math.pow((1+(interest/100)/12),(-t)));

result=Math.round(result*100) /100;

//The line below shows the result in the box

document.getElementById(“monthlypayment”).innerHTML=result;

}

</script>

You can try changing the term into years instead of months to make it work
for a home mortgage payment calculation.

CLICK HERE TO DOWNLOAD THE CODE

Recent Comments by Flavio M Galizia