个人所得税计算器2016 by Jacksile
生活随笔
收集整理的這篇文章主要介紹了
个人所得税计算器2016 by Jacksile
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
個人所得稅計算器2016
個人所得稅計算器2016
| 稅前薪資: | 元 |
| 各項社會保險費: | 元 |
| 起征點: | 35004800元 |
| 應繳稅款: | 元 |
| 實發薪資: | 元 |
個人所得稅計算公式
應納稅額 = 應納稅所得額 x 稅率 - 速算扣除數
應納稅所得額 = 工資收入金額 - 各項社會保險費 - 起征點(3500元)
說明:如果計算的是外籍人士(包括港、澳、臺),則個稅起征點應設為4800元。
附個人所得稅計算器2016源碼下載
<!DOCTYPE html> <html> <head><meta charset="UTF-8"><title>個人所得稅計算器2016</title><style type="text/css">.unit {padding-left: 2px;}.btn {float: center;width: 200px;height: 40px; text-align: center;line-height: 29px;font-weight: bold;letter-spacing: 4px;font-size: 16px;}</style><script type="text/javascript" >function calculate() { var pre1 = document.getElementById("pre-tax").value;var ins = document.getElementById("insurance").value;var pre = pre1-ins;var start = document.getElementById("start-tax").value;var i=0;var all = (pre-start).toFixed(2);var to;var x=document.getElementById("demo1"); // 找到元素var y=document.getElementById("demo2"); // 找到元素var z=document.getElementById("demo3"); // 找到元素if(isNaN(pre1)){alert("你輸入的稅前薪資不是數字型的,而是 "+pre1+",請輸入數字型的稅前薪資!");}if(isNaN(ins)){alert("你輸入的社會保險費不是數字型的,而是 "+ins+",請輸入數字型的稅前薪資!");}if(pre1==""){alert('請輸入你的稅前薪資,稅前薪資不能為空');}if(start==4800){i=1300;}if (parseInt(pre)>(83500+i)) {var to=(all*45/100-13505).toFixed(2); document.getElementById("interest").value =to;document.getElementById("final-tax").value =(pre-to).toFixed(2);x.innerHTML="應納稅所得額 "+all+" 元"; // 改變內容 y.innerHTML="適用稅率 45 %"; // 改變內容 z.innerHTML="速算扣除數 13505 元"; // 改變內容 }if (parseInt(pre)<=(83500+i)&&parseInt(pre)>(58500+i)) {to =(all*35/100-5505).toFixed(2); document.getElementById("interest").value =to;document.getElementById("final-tax").value =(pre-to).toFixed(2);x.innerHTML="應納稅所得額 "+all+" 元"; // 改變內容 y.innerHTML="適用稅率 35 %"; // 改變內容 z.innerHTML="速算扣除數 5505 元"; // 改變內容 } else if(parseInt(pre)<=(58500+i)&&parseInt(pre)>(38500+i)){to =(all*30/100-2755).toFixed(2); document.getElementById("interest").value =to;document.getElementById("final-tax").value =(pre-to).toFixed(2);x.innerHTML="應納稅所得額 "+all+" 元"; // 改變內容 y.innerHTML="適用稅率 30 %"; // 改變內容 z.innerHTML="速算扣除數 2755 元"; // 改變內容 } else if(parseInt(pre)<=(38500+i)&&parseInt(pre)>(12500+i)){to =(all*25/100-1005).toFixed(2); document.getElementById("interest").value =to;document.getElementById("final-tax").value =(pre-to).toFixed(2);x.innerHTML="應納稅所得額 "+all+" 元"; // 改變內容 y.innerHTML="適用稅率 25 %"; // 改變內容 z.innerHTML="速算扣除數 1005 元"; // 改變內容 } else if(parseInt(pre)<=(12500+i)&&parseInt(pre)>(8000+i)){to =(all*20/100-555).toFixed(2); document.getElementById("interest").value =to;document.getElementById("final-tax").value =(pre-to).toFixed(2);x.innerHTML="應納稅所得額 "+all+" 元"; // 改變內容 y.innerHTML="適用稅率 20 %"; // 改變內容 z.innerHTML="速算扣除數 555 元"; // 改變內容 } else if(parseInt(pre)<=(8000+i)&&parseInt(pre)>(5000+i)){to =(all*10/100-105).toFixed(2); document.getElementById("interest").value =to;document.getElementById("final-tax").value =(pre-to).toFixed(2);x.innerHTML="應納稅所得額 "+all+" 元"; // 改變內容 y.innerHTML="適用稅率 10 %"; // 改變內容 z.innerHTML="速算扣除數 105 元"; // 改變內容 } else if(parseInt(pre)<=(5000+i)&&parseInt(pre)>(3500+i)){to=(all*3/100).toFixed(2); document.getElementById("interest").value =to;document.getElementById("final-tax").value =(pre-to).toFixed(2);x.innerHTML="應納稅所得額 "+all+" 元"; // 改變內容 y.innerHTML="適用稅率 3 %"; // 改變內容 z.innerHTML="速算扣除數 0 元"; // 改變內容 } else if(parseInt(pre)<=(3500+i)&&pre1!="") {alert('您無需繳納個人所得稅!');} } function reset() { document.getElementById("pre-tax").value ="";document.getElementById("insurance").value="0";document.getElementById("start-tax").value="3500";document.getElementById("interest").value ="";document.getElementById("final-tax").value =""; }//為keyListener方法注冊按鍵事件 document.onkeydown=keyListener; function keyListener(e){ // 當按下回車鍵,執行我們的代碼if(e.keyCode == 13){ calculate();} } </script></head><body style="margin-left:160px;"><h1>個人所得稅計算器2016</h1><table><tbody><tr><td>稅前薪資:</td><td><input style="padding-top:10px;font-size:20px;" type="text" id="pre-tax"/><span class="unit">元</span></td></tr><tr><td>各項社會保險費:<td><input style="padding-top:10px;font-size:20px;" type="text" value="0" id="insurance"/><span class="unit">元</span></td></tr><tr><td>起征點:</td><td><select style="padding-top:10px;font-size:20px;" id="start-tax"><option value="3500" selected="selected">3500 </option><option value="4800">4800 </option></select><span class="unit">元</span></td></tr><tr><td><input class="btn" type="button" id="calculate" value="計算" onclick="calculate()"/></td><td><input class="btn" type="button" id="calculate" value="重置" onclick="reset()"/></td></tr><tr id="demo1"></tr><tr id="demo2"></tr><tr id="demo3"></tr><tr><td>應繳稅款:<td><input style="padding-top:10px;font-size:20px;" type="text" id="interest" readonly="readonly"/><span class="unit">元</span></td></tr><tr><td>實發薪資:<td><input style="padding-top:10px;font-size:20px;" type="text" id="final-tax" readonly="readonly"/><span class="unit">元</span></td></tr></tbody></table><br /><br /><br /><br /><hr /><p>個人所得稅計算公式</p><p>應納稅額 = 應納稅所得額 x 稅率 - 速算扣除數</p><p>應納稅所得額 = 工資收入金額 - 各項社會保險費 - 起征點(3500元)<p><p>說明:如果計算的是外籍人士(包括港、澳、臺),則個稅起征點應設為4800元。</p></body></html>
?
轉載于:https://www.cnblogs.com/tufujie/p/5055885.html
總結
以上是生活随笔為你收集整理的个人所得税计算器2016 by Jacksile的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: “女子晚婚姻”下一句是什么
- 下一篇: 刮奖效果