RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.InterestRate Function

Returns the interest rate required to increase PresentValue to FutureValue.

Pascal
function InterestRate(NPeriods: Integer; const Payment: Extended; const PresentValue: Extended; const FutureValue: Extended; PaymentTime: TPaymentTime): Extended;
C++
Extended InterestRate(int NPeriods, const Extended Payment, const Extended PresentValue, const Extended FutureValue, TPaymentTime PaymentTime);

Math

InterestRate calculates the interest rate required in order for an investment of PresentValue, with periodic payments of Payment, to be worth FutureValue within NPeriods compounding periods. If NPeriods represents years, an annual interest rate results; if NPeriods represents months, a monthly interest rate results, and so on. The PaymentTime parameter indicates whether the cash flows occur at the beginning or end of the period. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!