System.Math.NumberOfPeriods
Delphi
function NumberOfPeriods(const Rate: Extended; Payment: Extended; const PresentValue, FutureValue: Extended; PaymentTime: TPaymentTime): Extended;
C++
extern DELPHI_PACKAGE System::Extended __fastcall NumberOfPeriods(const System::Extended Rate, System::Extended Payment, const System::Extended PresentValue, const System::Extended FutureValue, TPaymentTime PaymentTime);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Returns the number of payment periods for an investment.
NumberOfPeriods computes the number of payment periods required for an investment of PresentValue to reach a value of FutureValue, while making regular payments of Payment and accruing interest at the rate of Rate per compounding period. PaymentTime indicates whether the cash flows occur at the beginning or end of the period.