C#代码编程 稿酬所得个税计算器2018 方法公式
发布时间:2017-10-22阅读数:5533
C#代码编程 稿酬所得个税计算器2018 方法公式,现在已经做成小工具,专业计算稿酬个税,支持正算反算,十分方便,下载使用联系QQ:848733865。
decimal? income = getDecimal(txtIncome, "稿酬所得");
//首先获取稿酬收入金额,我用了自己定义的方法getDecimal(...),实际就是从文本框中得到输入的金额,并做校验
if (income == null) return;
decimal fee = income.Value < 4000 ? 800 : income.Value * 0.2m;
//费用标准,稿酬收入小于4000元的,固定扣除费用为800元,大于等于4000元的,扣除费用为收入的20%
txtFee.Text = fee.ToString("N");
txtRate.Text = "14%";
decimal taxableIncome = income.Value - fee;
if (taxableIncome <= 0)
{
//此时意味着收入金额小于等于800元,是不需要缴税的
txtTaxableIncome.Text = "0.00";
txtTax.Text = "0.00";
txtIncomeAT.Text = income.Value.ToString("N");
}
else
{
txtTaxableIncome.Text = taxableIncome.ToString("N");
decimal tax = taxableIncome * 0.14m;
//稿酬税率为14%
txtTax.Text = tax.ToString("N");
decimal incomeAT = income.Value - tax;
txtIncomeAT.Text = incomeAT.ToString("N");
}