devxlogo

Computing Future Value

Question:
I am trying to make a financial calculator that will compute Future Value,but I don’t know how to write code for compounded interest.

Answer:
I believe you want to use the PV function, which is documented in the Help File. I’ve included it here also.

PV FunctionReturns the present value of an annuity based on periodic, constant payments to be paid in the future and a constant interest rate.SyntaxPV(rate, nper, pmt[, fv[, type]])
The PV Function is also available in VB4.0. There is a good example code snippet in the help file entry on the subject. Simply search the helpfile for “PV”.

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  Seven Service Boundary Mistakes That Create Technical Debt

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.