(PMT2(int,per,fv))
Returns the amount of the periodic payment to accrue the future value, fv, based on the periodic interest rate, int, for the number of compounding periods, per.
In the following example, PMT2 returns the monthly payment you must make if you want to have $25,000 in 10 years and your annual interest rate is 7%, compounded monthly. The value of vpmt2 (the payment) is $144.44.
SET VAR vpmt2 = (PMT2((.07/12),120,25000))