calcTaxBenefitSwiss: calcTaxBenefitSwiss

View source: R/TaxBenefit.R

calcTaxBenefitSwissR Documentation

calcTaxBenefitSwiss

Description

Calculates the tax benefits as a difference of the taxes paid with and without retirement contributions. Calls 'getTaxAmount()', therefore, it assumes objects in the global environment.

Usage

calcTaxBenefitSwiss(ExpectedSalaryPath, TaxableIncome, rate_group, Age,
  NChildren, postalcode, churchtax)

Arguments

ExpectedSalaryPath

Vector of annual salaries until retirement.

TaxableIncome

Vector of annual taxable income until retirement.

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

Value

Single tax benefits (tax relief) of one contribution.

See Also

getTaxAmount()

swisstax

Examples

## Not run: 
  calcTaxBenefitSwiss(ExpectedSalaryPath = seq(90000, 100000, 1000),
                    TaxableIncome = seq(88000, 98000, 1000),
                    rate_group = "A",
                    Age = seq(55, 65),
                    NChildren = 0,
                    postalcode = 8400,
                    churchtax = "Y")

## End(Not run)

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