国产探花免费观看_亚洲丰满少妇自慰呻吟_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程序設計有所幫助。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 巴彦淖尔市| 怀安县| 台江县| 大港区| 隆安县| 凤城市| 乌拉特中旗| 洮南市| 同德县| 新津县| 曲沃县| 开封县| 龙里县| 珲春市| 文登市| 惠东县| 丰都县| 南阳市| 依兰县| 论坛| 栾川县| 柏乡县| 武平县| 沙坪坝区| 淅川县| 额敏县| 静安区| 偃师市| 丰城市| 宜州市| 惠水县| 浠水县| 调兵山市| 丽水市| 玉门市| 雷波县| 镶黄旗| 南阳市| 南平市| 上饶县| 东港市|