taxNet: Calculate the tax and net salary by providing anual gross...

View source: R/tax.R

taxNetR Documentation

Calculate the tax and net salary by providing anual gross salary

Description

Calculate the tax and net salary by providing anual gross salary

Usage

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

Arguments

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

Value

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.

Examples

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

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