% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/evm.R
\name{etc}
\alias{etc}
\title{Estimate to Complete (ETC).}
\usage{
etc(bac, ev, cpi = NULL)
}
\arguments{
\item{bac}{Budget at Completion (BAC) (total planned budget).}

\item{ev}{Earned Value.}

\item{cpi}{Cost Performance Index. If NULL, assumes remaining work will be completed
at planned cost (ETC = BAC - EV). If provided, adjusts for current performance
(ETC = (BAC - EV) / CPI).}
}
\value{
The function returns the Estimate to Complete (ETC).
}
\description{
Calculates the Estimate to Complete (ETC), which is the expected cost to finish
the remaining work.
}
\examples{
bac <- 100000
ev <- 35000
cpi <- 0.83

# ETC assuming remaining work at planned rate
etc <- etc(bac, ev)
cat("ETC (planned rate):", etc, "\n")

# ETC assuming remaining work at current CPI
etc <- etc(bac, ev, cpi)
cat("ETC (current CPI):", round(etc, 2), "\n")

}
\references{
Damnjanovic, Ivan, and Kenneth Reinschmidt. Data analytics for engineering and
construction project risk management. No. 172534. Cham, Switzerland: Springer, 2020.
}
\seealso{
\code{\link{eac}}, \code{\link{vac}}, \code{\link{tcpi}}
}
