netFutureValue <-
function (cashFlows, interestRate)
{
exponent <- length(cashFlows) - 1
futureValue <- 0
for (item in cashFlows) {
futureValue <- futureValue + fv(item, interestRate, exponent)
exponent <- exponent - 1
}
futureValue
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.