<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>工资计算器</title>
<script type="text/javascript">
var data=[
{level:1,start:0,end:500,rate:5,jian:0},
{level:2,start:501,end:2000,rate:10,jian:25},
{level:3,start:2001,end:5000,rate:15,jian:125},
{level:4,start:5001,end:20000,rate:20,jian:375},
{level:5,start:20001,end:40000,rate:25,jian:1375},
{level:6,start:40001,end:60000,rate:30,jian:3375},
{level:7,start:60001,end:80000,rate:35,jian:6375},
{level:8,start:80001,end:100000,rate:40,jian:10375},
{level:9,start:100000,end:0,rate:45,jian:15375}
];
function conpute(){
var idStart= parseInt(document.getElementById("idStart").value);
var idValue= parseInt(document.getElementById("idValue").value);
var idSheBao= parseInt(document.getElementById("idSheBao").value);
var idStep="";
var idStepCompute="";
var idShuiHou = idValue-idStart-idSheBao;
var tempResult=0;
for(var i=0;i<data.length;i++)
{
if(idShuiHou>=data[i].start&&(idShuiHou<=data[i].end || data[i].end==0))
{
tempResult=idShuiHou*(data[i].rate/100)-data[i].jian;
idStepCompute=idShuiHou+"*"+(data[i].rate/100)+"-"+data[i].jian;
break;
}
}
idStepCompute = idStepCompute.length<1||idStepCompute==undefined?("0"):(idStepCompute);
document.getElementById("idStep").innerHTML=idValue+"-("+idStepCompute+")-"+idSheBao+"="+(idValue-tempResult-idSheBao);
tempResult=(idValue-tempResult-idSheBao);
document.getElementById("idDaoShou").value=tempResult;
}
function doCancel(){
document.getElementById("idValue").value=2000;
}
</script>
<style type="text/css">
<!--
.STYLE1 {
font-size: 18px;
font-weight: bold;
}
table td{
border: #FFFFCC 1px solid;
text-align:left;
}
table{
border: #FFFFCC 1px solid;
}
-->
</style>
</head>
<body>
<center>
<table width="600" height="220" border="1" cellspacing="0">
<tr>
<td height="59" colspan="3"><div align="center" class="STYLE1">工资计算器</div></td>
</tr>
<tr>
<td width="127" height="42">工资起征点:</td>
<td width="331"><input id="idStart" value="2000" onkeyup="this.value=this.value.replace(/[^\d]+/img,'')" /></td>
<td width="32"> </td>
</tr>
<tr>
<td>税前工资:</td>
<td><input name="Input" id="idValue" value="2000" onkeyup="this.value=this.value.replace(/[^\d]+/img,'')"/></td>
<td> </td>
</tr>
<tr>
<td>社保和公积金费用:</td>
<td><input name="Input" id="idSheBao" value="500" onkeyup="this.value=this.value.replace(/[^\d]+/img,'')"/> </td>
<td> </td>
</tr>
<tr>
<td>税后工资:</td>
<td><input name="Input" id="idDaoShou" value="2000" /> </td>
<td> </td>
</tr>
<tr>
<td colspan="3">计算步骤:<span id="idStep"></span></td>
</tr>
<tr>
<td> </td>
<td><input name="button" type="button" onclick="conpute()" value="计算" />
<input name="button2" type="button" onclick="doCancel()" value="取消" /></td>
<td> </td>
</tr>
</table>
<table width="100%" border="1" cellspacing="0">
<tr>
<th height="28" width="5%">级数</th>
<th width="26%">含税级距</th>
<th width="26%">不含税级距 </th>
<th width="8%">税率(%)</th>
<th width="12%">速算扣除数</th>
<th width="23%">说明</th>
</tr>
<tr>
<td align="center">1</td>
<td>不超过500元的</td>
<td>不超过475元的</td>
<td align="center">5</td>
<td align="center">0</td>
<td bgcolor="#fcfae9" rowspan="9"><div>
<p>1、本表含税级距指以每月收入额减除费用两千元后的余额或者减除附加减除费用后的余额。 </p>
<p>2、含税级距适用于由纳税人负担税款的工资、薪金所得;不含税级距适用于由他人(单位)代付税款的工资、薪金所得。</p>
</div></td>
</tr>
<tr bgcolor="#fbebdd">
<td align="center">2</td>
<td>超过500元至2,000元的部分</td>
<td>超过475元至1,825元的部分</td>
<td align="center">10</td>
<td align="center">25</td>
</tr>
<tr>
<td align="center">3</td>
<td>超过2,000元至5,000元的部分</td>
<td>超过1,825元至4,375元的部分</td>
<td align="center">15</td>
<td align="center">125</td>
</tr>
<tr bgcolor="#fbebdd">
<td align="center">4</td>
<td>超过5,000元至20,000元的部分</td>
<td>超过4,375元至16,375元的部分</td>
<td align="center">20</td>
<td align="center">375</td>
</tr>
<tr>
<td align="center">5</td>
<td>超过20,000元至40,000元的部分</td>
<td>超过16,375元至31,375元的部分</td>
<td align="center">25</td>
<td align="center">1,375</td>
</tr>
<tr bgcolor="#fbebdd">
<td align="center">6</td>
<td>超过40,000元至60,000元的部分</td>
<td>超过31,375元至45,375元的部分</td>
<td align="center">30</td>
<td align="center">3,375</td>
</tr>
<tr>
<td align="center">7</td>
<td>超过60,000元至80,000元的部分</td>
<td>超过45,375元至58,375元的部分</td>
<td align="center">35</td>
<td align="center">6,375</td>
</tr>
<tr bgcolor="#fbebdd">
<td align="center">8</td>
<td>超过80,000元至100,000元的部分</td>
<td>超过58,375元至70,375的部分</td>
<td align="center">40</td>
<td align="center">10,375</td>
</tr>
<tr>
<td align="center">9</td>
<td>超过100,000元的部分</td>
<td>超过70,375元的部分</td>
<td align="center">45</td>
<td align="center">15,375</td>
</tr>
</table>
</center>
</body>
</html>