RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.InterestPayment Function

Calculates the interest portion of a loan payment.

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

Call InterestPayment to calculate the portion of a loan payment that reflects the interest. 

Rate represents the fixed periodic interest rate. 

Period identifies the payment period. 

NPeriods is the number of periods of the loan. 

PresentValue represents the amount borrowed (the principal). 

FutureValue is the future value of the investment. 

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!