税收问题 [英] Trouble with Taxes

查看:45
本文介绍了税收问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被要求解决这个问题:


我们想要计算一个年薪和月薪的年薪和月税率,知道NI缴费,养老金缴款和所得税的税率。我们将使用虚数,而不是实际费率。


工资是从键盘输入的。

NI的贡献计算为工资总额的6% 。

养老金缴款按工资总额的2%计算。

所得税是在扣除NI和养老金缴款后逐步计算的。应税金额(扣除后)分为几个频段,每个频段按不同的税率征税:


年收入总额:税率:

0 - 前4000的4000 0%
4001?未来10999年15000 17%

15001?接下来的14999年将获得30000 25%

30001以及任何剩余部分的40%以上


例如,如果年薪总额为32,588,那么每年的贡献是1955.28(NI)和651.76(退休金),所得税适用于

32588-(1955.28 + 651.76)= 29980.96。

年度所得税总额为0 + 1869.93 + 3745.49 = 5614.92:

0在前4000(剩下25980.96到税),再加上

17%在第二个10999 = 1869.93(剩下14981.96到税) ,另外

25%剩余14981.96 = 3745.49(小于14999的14981.96)


会话必须如下(包括表格结构和对齐方式) ):


输入总年薪:32,588

捐款:

每月每年

NI 162.94 1955.28

退休金54.31 651.76

扣除后的应税金额:29980.96


应缴税款467.91 5614.92


我已经做了所有事情,除非我正在计算应缴税款时似乎有一些错误。请有人帮忙!

在此之前一切都是正确的,我想我可能只是在某个地方有一个小的语法错误但是找不到确切的解决方案

这个是我的税码:

I have been asked to solve this problem:

We want to compute the yearly and monthly rate of taxes to be paid by a person earning a given gross yearly salary, knowing the rates for NI contributions, pension contributions, and income tax. We shall use imaginary figures, not real rates.

The salary is input from the keyboard.
The NI contribution is calculated as 6% of the gross salary.
The pension contribution is calculated as 2% of the gross salary.
The income tax is computed progressively after detracting NI and pension contributions. The taxable amount (after detractions) is divided into bands, each taxed at a different rate as follows:

Gross yearly income: Tax rate:
0 - 4000 0% on first 4000
4001 ? 15000 17% on next 10999
15001 ? 30000 25% on next 14999
30001 and above 40% on any remainder

For example, if the gross yearly salary is 32,588, then the yearly contributions are 1955.28 (NI) and 651.76 (pension), and the income tax is applicable to
32588-(1955.28+651.76) = 29980.96.
The total yearly income tax is 0+1869.93+3745.49 = 5614.92:
0 on the first 4000 (leaving 25980.96 to tax), plus
17% on the second 10999 = 1869.93 (leaving 14981.96 to tax), plus
25% on the remaining 14981.96 = 3745.49 (as 14981.96 smaller than 14999)

The session must look like this (including the tabular structure and alignment):

Input gross yearly salary: 32,588

Contributions:
Monthly Yearly
NI 162.94 1955.28
Pension 54.31 651.76

Taxable amount after detractions: 29980.96

Tax due 467.91 5614.92


I have done everything except there seems to be a few errors when i''m working out the tax due. Could someone help please!!
Everything is correct before this point, I think i may just have a small syntax error somewhere but can''t find the exact solution
This is my tax code:

展开 | 选择 | Wrap | 行号

推荐答案


我被要求解决这个问题:


我们想要计算一个年薪和月薪的年薪和月薪率NI贡献率,养老金缴款和所得税。我们将使用虚数,而不是实际费率。


工资是从键盘输入的。

NI的贡献计算为工资总额的6% 。

养老金缴款按工资总额的2%计算。

所得税是在扣除NI和养老金缴款后逐步计算的。应税金额(扣除后)分为几个频段,每个频段按不同的税率征税:


年收入总额:税率:

0 - 前4000的4000 0%
4001?未来10999年15000 17%

15001?接下来的14999年将获得30000 25%

30001以及任何剩余部分的40%以上


例如,如果年薪总额为32,588,那么每年的贡献是1955.28(NI)和651.76(退休金),所得税适用于

32588-(1955.28 + 651.76)= 29980.96。

年度所得税总额为0 + 1869.93 + 3745.49 = 5614.92:

0在前4000(剩下25980.96到税),再加上

17%在第二个10999 = 1869.93(剩下14981.96到税) ,另外

25%剩余14981.96 = 3745.49(小于14999的14981.96)


会话必须如下(包括表格结构和对齐方式) ):


输入总年薪:32,588

捐款:

每月每年

NI 162.94 1955.28

退休金54.31 651.76

扣除后的应税金额:29980.96


应缴税款467.91 5614.92


我已经做了所有事情,除非我正在计算应缴税款时似乎有一些错误。请有人帮忙!

在此之前一切都是正确的,我想我可能只是在某个地方有一个小的语法错误但是找不到确切的解决方案

这个是我的税码:

I have been asked to solve this problem:

We want to compute the yearly and monthly rate of taxes to be paid by a person earning a given gross yearly salary, knowing the rates for NI contributions, pension contributions, and income tax. We shall use imaginary figures, not real rates.

The salary is input from the keyboard.
The NI contribution is calculated as 6% of the gross salary.
The pension contribution is calculated as 2% of the gross salary.
The income tax is computed progressively after detracting NI and pension contributions. The taxable amount (after detractions) is divided into bands, each taxed at a different rate as follows:

Gross yearly income: Tax rate:
0 - 4000 0% on first 4000
4001 ? 15000 17% on next 10999
15001 ? 30000 25% on next 14999
30001 and above 40% on any remainder

For example, if the gross yearly salary is 32,588, then the yearly contributions are 1955.28 (NI) and 651.76 (pension), and the income tax is applicable to
32588-(1955.28+651.76) = 29980.96.
The total yearly income tax is 0+1869.93+3745.49 = 5614.92:
0 on the first 4000 (leaving 25980.96 to tax), plus
17% on the second 10999 = 1869.93 (leaving 14981.96 to tax), plus
25% on the remaining 14981.96 = 3745.49 (as 14981.96 smaller than 14999)

The session must look like this (including the tabular structure and alignment):

Input gross yearly salary: 32,588

Contributions:
Monthly Yearly
NI 162.94 1955.28
Pension 54.31 651.76

Taxable amount after detractions: 29980.96

Tax due 467.91 5614.92


I have done everything except there seems to be a few errors when i''m working out the tax due. Could someone help please!!
Everything is correct before this point, I think i may just have a small syntax error somewhere but can''t find the exact solution
This is my tax code:

展开 | 选择 | Wrap | 行号


如果纳税大于4000,那么它应该进入下一个循环。


在第二个循环中,下一个10999然后按17%征税。

如果第二个循环的余数大于15000那么它应该去进入下一个循环。


in第三个循环任何最大值为14999的值然后按25%征税

如果第三个循环的剩余部分大于30000,则剩余部分征收40%的税。


它有点复杂,但总结一下:

年收入总额:税率:

0 - 4000 0%,前4000

4001?未来10999年15000 17%

15001?接下来的14999将获得30000 25%

30001以及任何剩余部分的40%以上


这里有一个应该生产的例子:

例如,如果年薪总额为32,588,则年度缴费为1955.28(NI)和651.76(退休金),所得税适用于

32588-(1955.28+) 651.76)= 29980.96。

年度所得税总额为0 + 1869.93 + 3745.49 = 5614.92:

0在第一个4000(剩下25980.96到税),加上

第二个10999的17%= 1869.93(剩下14981.96到税),再加上

剩下的14981.96 = 3745.49 25%(比14999小14981.96)


谢谢
If taxable is greater than 4000 then it should go into the next loop.

in the second loop the next 10999 is then taxed at 17%.
If the remainder from the second loop is greater than 15000 then it should go into the next loop.

in the third loop any value up to a maximum of 14999 is then taxed at 25%
If the remainder from the third loop is greater than 30000 then 40% is taxed on the remainder.

Its a bit complicated working through but this is it summed up:
Gross yearly income: Tax rate:
0 - 4000 0% on first 4000
4001 ? 15000 17% on next 10999
15001 ? 30000 25% on next 14999
30001 and above 40% on any remainder

Here''s an example of what should be produced:
For example, if the gross yearly salary is 32,588, then the yearly contributions are 1955.28 (NI) and 651.76 (pension), and the income tax is applicable to
32588-(1955.28+651.76) = 29980.96.
The total yearly income tax is 0+1869.93+3745.49 = 5614.92:
0 on the first 4000 (leaving 25980.96 to tax), plus
17% on the second 10999 = 1869.93 (leaving 14981.96 to tax), plus
25% on the remaining 14981.96 = 3745.49 (as 14981.96 smaller than 14999)

Thanks


只是为了澄清,它打算进入下一个循环
just to clarify, it was intended to pass into the next loop


这篇关于税收问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆