国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 建站經驗 > 正文

php計算稅后工資的方法

2024-04-25 20:40:10
字體:
來源:轉載
供稿:網友

本文實例講述了php計算稅后工資的方法。分享給大家供大家參考。具體如下:

稅前 稅后

5000 3985

8000 6215

11000 8295

14000 10215

17000 12080

20000 13880

23000 15680

26000 17480

29000 19280

32000 21080

35000 22880

38000 24680

41000 26480

44000 28280

47000 30080

50000 31805

<?php

function after_sleep($salary,$housefund_ratio=0.1,$person_insurance_ratio=.08,$medical_insurance_ratio=.04)

{

$base = 3500;

$housefund = $salary * $housefund_ratio; //.10 .8

$person_insurance = $salary * $person_insurance_ratio;

$medical_insurance = $salary * $medical_insurance_ratio;

$insurance=($housefund + $person_insurance +$medical_insurance);

if ($salary - $insurance < $base ){

return $salary - $insurance;

}

$taxable_income= ($salary - $insurance -$base );

if ($taxable_income <=1500 ){

$ratio = .03;

$deduct = 0;

}else if ($taxable_income > 1500 && $taxable_income <=4500) {

$ratio = .1;

$deduct = 105;

}else if ($taxable_income > 4500 && $taxable_income <=9000) {

$ratio = .2;

$deduct = 555;

} else if ($taxable_income > 9000 && $taxable_income <= 35000) {

$ratio = .25;

$deduct = 1005;

} else if ($taxable_income > 35000 && $taxable_income <= 55000) {

$ratio = .3;

$deduct = 2755;

}

$tax = $taxable_income * $ratio-$deduct;

$money = $salary -$insurance-$tax;

return $money;

}

echo "稅前/t稅后/n";

for ($i=5000;$i<=50000;$i+=3000)

echo $i,"/t",after_sleep($i,.08),"/n";

希望本文所述對大家的php程序設計有所幫助。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 宣城市| 谷城县| 桐乡市| 筠连县| 新和县| 北安市| 锡林郭勒盟| 墨竹工卡县| 遂川县| 屯昌县| 新宁县| 和硕县| 东乌| 达尔| 陕西省| 高唐县| 安仁县| 马山县| 浦城县| 葫芦岛市| 武汉市| 乌拉特后旗| 锦州市| 马尔康县| 巨鹿县| 峨山| 方城县| 光山县| 新晃| 建平县| 远安县| 三原县| 资阳市| 衡山县| 东兰县| 新余市| 合山市| 兴宁市| 沙湾县| 乌拉特中旗| 敖汉旗|