buildTaxBenefits: buildTaxBenefits

View source: R/TaxBenefit.R

buildTaxBenefitsR Documentation

buildTaxBenefits

Description

All inputs are scalars. Builds a data frame as long as the years to retirement. Calls 'getTaxAmount()' through 'calcTaxBenefitSwiss()', therefore, it assumes objects on the global enviornment.

Usage

buildTaxBenefits(birthday, TypePurchase, P2purchase, P3purchase, returnP3,
  Salary, SalaryGrowthRate, postalcode, NChildren, churchtax, rate_group,
  givenday = today("UTC"), RetirementAge)

Arguments

birthday

Date of birth ("YYYY-MM-DD").

TypePurchase

AnnualP2 if the purchase on the second pillar gets repeated every year until retirement.

P2purchase

Annual voluntary contribution to the Occupational Fund.

P3purchase

Annual voluntary contribution to the Private Fund (3rd Pillar).

returnP3

Annual expected return on the Private Fund.

Salary

Stipend.

SalaryGrowthRate

Rate at which the salary increases/decreases.

postalcode

Zip code Character

NChildren

Number of children. Numeric scalar.

churchtax

Y/N Character Y/N

rate_group

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

givenday

Date at which the age is computed ("YYYY-MM-DD").

RetirementAge

Age of retirement.

Value

data.frame tax benefits path.

See Also

swisstax

Examples

## Not run: buildTaxBenefits(
 birthday,
 TypePurchase,
 P2purchase,
 P3purchase,
 returnP3,
 Salary,
 SalaryGrowthRate,
 postalcode,
 NChildren,
 churchtax,
 rate_group,
 MaxContrTax,
 givenday = today("UTC"),
 RetirementAge = 65)

## End(Not run)

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