tax | R Documentation |
Calculate the tax by providing annual gross salary #' @param salary annual salary in RMB.
tax( 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) )
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). |
The tax you should pay.
tax(100000) tax(c(100000, 200000, 250000, 270000, 300000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.