RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.PeriodPayment Function

Returns the principal amount from a full payment.

Pascal
function PeriodPayment(const Rate: Extended; Period: Integer; NPeriods: Integer; const PresentValue: Extended; const FutureValue: Extended; PaymentTime: TPaymentTime): Extended;
C++
Extended PeriodPayment(const Extended Rate, int Period, int NPeriods, const Extended PresentValue, const Extended FutureValue, TPaymentTime PaymentTime);

PeriodPayment gives the part of the payment that is principal. The InterestPayment function gives the part of the payment that is interest.  

The Rate parameter is the interest rate. Period is the number of periods into the loan for which the principal is desired, and NPeriods is the number of periods of the loan. FutureValue is the value the investment will reach at some point. PaymentTime indicates whether the cash flows occur at the beginning or end of the period. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!