getRetirementCalendar: getRetirementCalendar

View source: R/core.R

getRetirementCalendarR Documentation

getRetirementCalendar

Description

Calculate the annual retirement path. SmarP assumes that the user will get retired the day that turns 65 or its desired retirement age. For the current year, if birthday is later than the calculation day, there will be 2 dates.

Usage

getRetirementCalendar(birthday, givenday = today("UTC"),
  RetirementAge = 65)

Arguments

birthday

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

givenday

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

RetirementAge

Age of retirement.

Value

Retirement calendar.

Examples

## Not run: 
getRetirementCalendar("1981-08-12")
getRetirementCalendar("1981-08-12", as.Date("2018-12-02"), RetirementAge = 62)

## End(Not run)

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