Click or drag to resize

FV Function

X#
Returns the future value of a financial investment.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.21
Syntax
 FUNCTION FV(
	nPayment AS FLOAT,
	nInterestRate AS FLOAT,
	nPeriods AS FLOAT
) AS FLOAT
Request Example View Source

Parameters

nPayment
Type: Float
Specifies the constant periodic payment (which can be negative or positive).
nInterestRate
Type: Float
Specifies the periodic interest rate. If the interest rate is annual but the payments are made monthly, divide the annual interest rate by 12.
nPeriods
Type: Float
Specifies the number of periods over which payments are made. FV( ) assumes that the periodic payments are made at the end of each period.

Return Value

Type: Float
Numeric
Remarks
FV( ) computes the future value of a series of constant periodic payments earning fixed compound interest. The future value is the total of all payments and the interest.
Examples
X#
1STORE 500 TO gnPayment  // Monthly payment
2STORE .075/12 TO gnInterest     // 7.5% annual interest rate
3STORE 48 TO gnPeriods  // Four years (48 months)
4Clear
5? FV(gnPayment, gnInterest, gnPeriods)    // Displays 27887.93
See Also