The employer matches match_rate of contributions up to
match_limit_pct of salary. From the Retirement accounts chapter.
See also
Other retirement accounts:
after_tax_value()
Examples
# $45,000 salary, 6% contribution, 50% match on the first 6%
employer_match(salary = 45000, contribution_pct = 0.06,
match_limit_pct = 0.06, match_rate = 0.50)
#> [1] 1350
# same job, but only contributing 3%
employer_match(salary = 45000, contribution_pct = 0.03,
match_limit_pct = 0.06, match_rate = 0.50)
#> [1] 675