1. Computing & Technology
Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back

Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
 

FutureValue

unit
math
category
Business and finance routines

declaration
type TPaymentTime = (ptEndOfPeriod, ptStartOfPeriod);
function FutureValue(const Rate: Extended; NPeriods: Integer; const Payment, PresentValue: Extended; PaymentTime: TPaymentTime): Extended;

description
Returns the future value of an investment.

FutureValue returns the value of an investment of PresentValue where Payment is invested for NPeriods at the rate of Rate per period.

TPaymentTime indicates when interest is calculated. When ptStartOfPeriod is specified for PaymentTime, interest is calculated on the principle balance at the beginning of the payment period; when ptEndOfPeriod is specified for PaymentTime, interest is calculated at the end of the payment period.

example
var fv : extended;

fv:= FutureValue(0, 12, 2, 100,ptStartOfPeriod);
showmessage(FloatToStr(fv))
//will display -124

in real code

see also


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.