Nothing
#' Compute annual payment value from future value
#'
#' \code{future_to_annual} calculate annual value from future value using
#' the accumulated amount after years using sinking fund factor (sff)
#'
#' @param i discount rate in percent per year
#' @param n life span in years
#' @param FV accumulated (future) value
#'
#' @return A
#'
#' @references
#' Newnan, D. G., Eschenbach, T. G., Lavelle, J. P., & Oxford, N. Y.
#' Engineering Economic Analysis, 14th ed.
#' New York, Oxford University Press, 2020
#'
#' David, W., & Terry, R.
#' Fundamentals of Engineering Economics and Decision Analysis.
#' Springer Nature, 2012
#'
#' @examples
#' # Result: A = 5737.83
#' future_to_annual(0.08, 30, 650000)
#'
#' @export
future_to_annual <- function(i, n, FV){
# compute sinking fund factor
sff <- i / ((1+i)^n-1)
# compute annual value of costs
A <- FV * sff
#Send the output
A
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.