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

\item{z}{Retirement age.}

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

\item{c}{Contribution rate.}

\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{
Replacement ratio.
}
\description{
Computes the replacement ratio defined in Equation (18.4).
}
\examples{
replacement_ratio_dc(
  x = 30, z = 65, Sx = 50000, c = 0.10, i = 0.05,
  adue_z = 12, g = 0.04
)
}
