Personal Income Tax Calculator

Source: Internet
Author: User

Personal Income Tax Calculator


<form name=form1 onsubmit= "return Frontpage_form1_validator" >
<div align=center>
<CENTER>
<table width=350 border=0
cellpadding=4 cellspacing=1 bgcolor= "#D9D9D9" style= "FONT-SIZE:9PT;

Font-family: Song Body ">
<TBODY>
<tr align=middle>
<TD bgcolor= "#FFFFFF" ><span
Style= "FONT-SIZE:9PT; font-family: XXFarEastFont-arial > Please enter your monthly income:

</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;
<input size=18 name=money> <span
Style= "FONT-SIZE:9PT; Font-family: Song Body "> Yuan </SPAN></TD>
</TR>
<tr align=middle>
<TD bgcolor= "#FFFFFF" ><span style= "FONT-SIZE:9PT; Font-family: Song Body

"><span class=" STYLE1 "> Local personal income tax threshold </span>:</SPAN>
<input size=18 name=kcmoney> <span
Style= "FONT-SIZE:9PT; Font-family: Song Body "> Yuan </SPAN><BR> (for example 800,

1000) </TD>
</TR>
<tr align=middle>
<TD bgcolor= #FFFFFF ><input type=submit value= calculation name=sub

&nbsp;&nbsp;&nbsp;&nbsp;>
<input Type=reset value= Re-enter name=reset></td>
</TR></TBODY></TABLE></CENTER></DIV></FORM>

<script language=javascript><!--
function Frontpage_form1_validator (theform)
{
var Checkok = "0123456789";
var checkstr = TheForm.money.value;
var allvalid = true;
var decpoints = 0;
var allnum = "";
for (i = 0;  i < checkstr.length; i++)
{
ch = checkstr.charat (i);
for (j = 0;  J < Checkok.length; J + +)
if (ch = = Checkok.charat (j))
Break
if (j = = Checkok.length)
{
Allvalid = false;
Break
}
if (ch!= ",")
Allnum + = ch;
}
if (!allvalid)
{
Alert ("Only numbers can be entered in monthly revenue.") ");
return (false);
}

  var Checkok = "0123456789";
  var checkstr = TheForm.KCmoney.value;
  var allvalid = true;
  var decpoints = 0;
  var allnum = "";
  for (i = 0;  i < checkstr.length;  i++)
  {
    ch = checkstr.charat ( i);
    for (j = 0;  J < checkok.length;  J)
      if (ch = c Heckok.charat (j))
        break;
    if (j = = Checkok.length)
    {
      allvalid = false;
   & nbsp;  break;
   }
    if (ch!= ",")
      allnum + = ch;
 }
  if (!allva Lid)
  {
    alert ("Only digits can be entered in the starting amount.") ");
    return (false);
 }

var basicm,totalmoney,cha,output;
Totalmoney=document.form1.money.value;
Basicm=document.form1.kcmoney.value;
Cha= (TOTALMONEY-BASICM);
if (cha<=0) {output=0;}
if (cha>0&&cha<=500) {output=cha*0.05;}
if (cha>500&&cha<=2000) {output=cha*0.1-25;}
if (cha>2000&&cha<=5000) {output=cha*0.15-125;}
if (cha>5000&&cha<=20000) {output=cha*0.2-375;}
if (cha>20000&&cha<=40000) {output=cha*0.25-1375;}
if (cha>40000&&cha<=60000) {output=cha*0.30-3375;}
if (cha>60000&&cha<=80000) {output=cha*0.35-6375;}
if (cha>80000&&cha<=100000) {output=cha*0.4-10375;}
if (cha>100000&&cha>100000) {output=cha*0.45-15375;}
Alert ("The amount of personal income tax payable =" +output+ "Yuan" + "n" + "n" + "+" is taxable according to law is every citizen should do

Of Duty!! ");
return (false);
}
--></script>

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.