% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chapter16_universal_life.R
\name{coi_ul_typeB}
\alias{coi_ul_typeB}
\title{Cost of insurance for Type B universal life}
\usage{
coi_ul_typeB(B, qx, iq)
}
\arguments{
\item{B}{Face amount.}

\item{qx}{Mortality probability for the period.}

\item{iq}{Interest rate used in the cost-of-insurance calculation. Values
must be greater than \code{-1}.}
}
\value{
A numeric vector of cost-of-insurance charges.
}
\description{
Computes the one-period cost of insurance for a Type B universal life
contract:
\deqn{
\mathrm{COI}_t = \frac{B_t q_{x+t-1}}{1+i_t^q}.
}
}
\details{
The arguments may be scalars or vectors. Scalar arguments are recycled to
the common length.
}
\examples{
coi_ul_typeB(B = 100000, qx = 0.00076, iq = 0.03)
coi_ul_typeB(
  B = 100000,
  qx = c(0.00076, 0.00081),
  iq = c(0.03, 0.035)
)

}
