tax: Calculate the tax by providing annual gross salary #' @param...

View source: R/tax.R

taxR Documentation

Calculate the tax by providing annual gross salary #' @param salary annual salary in RMB.

Description

Calculate the tax by providing annual gross salary #' @param salary annual salary in RMB.

Usage

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)
)

Arguments

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).

Value

The tax you should pay.

Examples

tax(100000)
tax(c(100000, 200000, 250000, 270000, 300000))

paodan/TaxCal documentation built on April 4, 2022, 12:43 a.m.