getTaxAmount: getTaxAmount

View source: R/TaxBenefit.R

getTaxAmountR Documentation

getTaxAmount

Description

This function uses 2 main sources for tax data. At Kanton and Gemeinde level, the source is taxburden.list. At federal level, we use the official taxrate table (BundessteueTabelle) and we try to aproximate the taxable income.

Usage

getTaxAmount(Income, rate_group, Age, NChildren, postalcode, churchtax)

Arguments

Income

Annual salary. Numeric scalar.

rate_group

A (Single), B (Married), C (Married Double income) Character.

Age

Age of the person. Numeric

NChildren

Number of children. Numeric scalar.

postalcode

Zip code Character

churchtax

Y/N Character Y/N

Details

This function assumes the following objects on the global enviornment

  • PLZGemeinden (includes Kirchensteuer)

  • taxburden.list

  • BundessteueTabelle

  • BVGcontributionratesPath, BVGcontributionrates

  • MaxBVG, MinBVG

  • KinderabzugKG

  • NBU, maxNBU

  • AHL

  • ALV, maxALV

  • VersicherungsL, VersicherungsV, VersicherungsK

  • BerufsauslagenTarif, BerufsauslagenMax, BerufsauslagenMin

Value

Tax Amount

See Also

swisstax

Examples

## Not run: 
getTaxAmount(Income = 200000, rate_group = "C", Age = 32,
             NChildren = 5, postalcode = 8400, churchtax = "Y")

## End(Not run)

miraisolutions/SmaRP documentation built on March 23, 2022, 6:46 a.m.