Personal Income Tax Calculator

Source: Internet
Author: User
Tip: You can modify some of the code before running

<ptml> <pead> <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "> <title> Personal Income Tax calculator </title> <link rel=" stylesheet "id=" Filestyle "type=" Text/css " href= "/data/common/filestyle.css" > </pead> <body> <div></p> Personal Income Tax Calculator </p> <div Align= "Right" > </div> <pr size= "1" > <div align= "left" > <script language=javascript> <!-- Function calc () {var salary,startnum,cha salary=document. TaxForm.Salary.value; if (salary== "" | | isNaN (Salary)) {document. TaxForm.Salary.focus (); Alert ("Please enter a number in monthly income"); return false} startnum=document. TaxForm.StartNum.value; if (startnum== "" | | isNaN (Startnum)) {document. TaxForm.StartNum.focus (); Alert ("Please enter a number in the starting amount"); return false} cha= (Salary-startnum); if (cha>100000) {output=cha*0.45-15375;} else if (cha>80000) {output=cha*0.4-10375} else if (cha>60000) {output=cha*0.35-6375} else if (cha>40000) {output=cha*0.30-3375} else if (cha>20000) {output=cha*0.25-1375;} else if (cha>5000) {output=cha*0.2-375} else if (cha>2000) {output=cha*0.15-125} else if (cha>500) {output=cha*0.1-25} else if (cha>0) {output=cha*0.05} else{output=0;} if (output>0) {alert ("should pay" +output+ "yuan personal income Tax amount" + "NN" + "pay taxes according to law is the duty of every citizen!! "); else{alert ("No personal income tax is required.") ")}}//--></script> <form name=taxform method=post> <table cellspacing=1 cellPadding=3 width=360 Ali Gn=center bgcolor= #666666 border=0> <TBODY> <TR> <td width=352 bgcolor= #666666 colspan=2> <p Align=center><font color= #ffffff > Personal Income Tax Calculator </FONT></P></TD></TR> <TR> &LT;TD Align=middle width=112 bgcolor= #ffffff > Monthly Revenue (Yuan):</td> <td align=middle width=234 bgcolor= #ffffff >< INPUT size=24 name=salary></td></tr> <TR> <td align=middle width=112 bgcolor= #ffffff > Levy (yuan ):</td> <td align=middle width=234 bgcolor= #ffffff ><input size=24 value=1600 Name=Startnum></td></tr> <TR> <td width=346 bgcolor= #ffffff colspan=2> <p align=center> <input Onclick=calc () Type=button value= "calculation" name=b1><input type=reset value= "Rewrite" name=b2></p></ Td></tr></tbody></table></form> </body> </ptml>
Tip: You can modify some of the code before running

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.