taxNet | R Documentation |
Calculate the tax and net salary by providing anual gross salary
taxNet( salary, bin = c(0, 36, 144, 300, 420, 660, 960) * 10^3, rate = c(0.03, 0.1, 0.2, 0.25, 0.3, 0.35, 0.45) )
salary |
annual gross salary in RMB. |
bin |
the bins for taxing. The default is c(0, 36,000, 144,000, 300,000, 420,000, 660,000, 960,000). |
rate |
the rate for each taxing bin. The default is c(0.03, 0.1, 0.2, 0.25, 0.3, 0.35, 0.45). |
a list, including annual gross salary, the tax you should pay, and the net anual salary. And make a plot, projecting the net salary on the curve.
taxNet(100000) taxNet(c(100000, 200000, 250000, 270000, 300000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.