rate Function

Calculates the interest that is required for the current investment value to attain the future value over the specified number of periods.


real rate(
    real _future_value,
    real _current_value,
    real _terms)

Parameter

Description

_future_value

The future value of the investment.

_current_value

The current value of the investment.

_terms

The number of periods over which the investment spans.

The calculated interest rate.

  • rate(10000,1000,20); //Returns the value 0.12.

Community Additions

ADD
Show: