Brian Dunning's FileMaker Custom Functions

NetPresentValueCF ( cashFlowsList, interestRate )

Calculate Net Present Value of a value list of cash flows (cashFlowsList) with a specified rate of return (interestRate).

  Be the first to rate this function Log in to vote

Lewis Lorenz   Lewis Lorenz - Show more from this author
Lorenz Companies
http://www.LorenzCom.com

Share on Facebook Share on Twitter

  Sample input:
List ( -2000, 600, 300, 500, 700, 400 ), .05
  Sample output:
164.7584131734254368

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

NetPresentValueCF ( cashFlowsList, interestRate )

Calculate Net Present Value of a value list of cash flows (cashFlowsList) with a specified rate of return (interestRate). Used to determine the present value of an investment by the discounted sum of all cash flows paid or received from the project.

NOTICE: Requires FileMaker 18+.

Created: 5/16/2023
Author: Lewis C. Lorenz

Example:
NetPresentValueCF ( "-500000¶200000¶300000¶200000", .1 ) = 80025.0262960180315552
NetPresentValueCF ( List ( -2000, 600, 300, 500, 700, 400 ), .05 ) = 164.7584131734254368
NetPresentValueCF ( List ( -5000, 10000, 0, 10000, 10000 ), .1 ) = 18434.1916535755754388

 

Comments

Michael Horak   Michael Horak, *COMMENT Visual Realisation
May 19, 2023
Compare: https://www.briandunning.com/cf/961
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: