% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chapter18_pensions.R
\name{contribution_rate_target}
\alias{contribution_rate_target}
\title{Target contribution rate for a defined contribution plan}
\usage{
contribution_rate_target(x, z, Sx, RR_target, i, adue_z, g = NULL, s = NULL)
}
\arguments{
\item{x}{Entry age.}

\item{z}{Retirement age.}

\item{Sx}{Salary at age \code{x}.}

\item{RR_target}{Target replacement ratio.}

\item{i}{Annual effective interest rate.}

\item{adue_z}{Whole life annuity-due factor at age \code{z}.}

\item{g}{Optional constant annual salary growth rate.}

\item{s}{Optional salary scale vector of length \code{z - x}.}
}
\value{
Required contribution rate.
}
\description{
Solves Equation (18.5) for the contribution rate required to achieve a
target replacement ratio.
}
\examples{
contribution_rate_target(
  x = 30, z = 65, Sx = 60000, RR_target = 0.50,
  i = 0.06, adue_z = 11, g = 0.04
)
}
