% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discounting.R
\name{gb_eanc}
\alias{gb_eanc}
\title{Equivalent annual net cost (or benefit)}
\usage{
gb_eanc(npv, years, schedule = "standard")
}
\arguments{
\item{npv}{Either a numeric scalar NPV, or a \code{gb_appraisal} object.}

\item{years}{Project horizon in years. If \code{npv} is a \code{gb_appraisal}
and \code{years} is missing, \code{length(npv$cashflow) - 1L} is used.}

\item{schedule}{One of \code{"standard"}, \code{"health"}, \code{"catastrophic"}.}
}
\value{
A numeric scalar: the equivalent annual amount in real
terms, base year aligned with the input.
}
\description{
Converts a present value to an annualised equivalent over a fixed
horizon under the STPR. Used to compare options of different
durations.
}
\examples{
app <- gb_npv(c(-100, 30, 30, 30, 30, 30))
gb_eanc(app)
}
\references{
HM Treasury (2022). The Green Book, Annex A on
appraisal: equivalent annual cost.
}
\seealso{
\code{\link[=gb_npv]{gb_npv()}}, \code{\link[=gb_appraise]{gb_appraise()}}.

Other discounting: 
\code{\link{gb_discount}()},
\code{\link{gb_discount_factor}()},
\code{\link{gb_npv}()},
\code{\link{gb_stpr}()}
}
\concept{discounting}
