Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages

Shopping Cart
Shopping Cart


Free Newsletter


Privacy Policy

FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.


 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

NetPresentValue ( listOfPayments ; interestRate )

Rate this function:  

  Average rating: 4.0  (44 votes)
  Discuss this Custom Function

Michael Horak, *COMMENT Visual Realisation

Same as Filemaker's native NPV() function - but payments do not need to be listed in a repeating field.

Sample Input:
NetPresentValue ( List ( -2000; 600; 300; 500; 700; 400 ) ; 0.5 )
Sample Output:

 Then copy & paste into FileMaker Advanced's Edit Custom Function window.


Returns the net present value (NPV) of a series of unequal future payments (negative values) and income (positive values) occuring at regular intervals, assuming a fixed interestRate per interval.

Same as Filemaker's native NPV() function - but payments do not need to be listed in a repeating field.

Use this function to calculate NPV. For example, if you invest a sum of money and get paid back unequal amounts over a period of several years, you can use the NetPresentValue function to calculate the net present value of your investment.

NetPresentValue ( List ( -2000; 600; 300; 500; 700; 400 ) ; 0.5 ) returns 156.9127744508813684

NetPresentValue ( List ( Payments::Amount ) ; 0.1 ) returns 16758.3560487050685808 when the related records in the Payments table contain the amounts of -5000 (the initial investment), 10,000, 0, 10,000, and 10,000.

The data for these examples comes from Filemaker's help on the NPV() function - in order to demonstrate that the custom function returns the same results as the native one.

However, in the original text the negative amounts -2000 and -5000 are called "the initial payment" or "the initial investment". Unfortunately, this is quite incorrect: the first amount in the series is presumed to be paid AT THE END of the first period, not at the beginning of the entire transaction, as one would expect.

To calculate the correct NPV in a situation where the series of payments is preceded by an initial income (or vice versa), calculate the NPV of future payments only and subtract the initial income from the result, e.g.:

NetPresentValue ( List ( 600; 300; 500; 700; 400 ) ; 0.5 ) - 2000

returns 164.7584131734254368.

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

This is my Custom Function and I want to edit it


There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:

Your Name:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 3 + 9 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. HexUUIDToNum_cf (_uuid)
  (Sat, Jun 16, 1:55pm)
2. httpResponseCode ( responseHeaders )
  (Tue, Jun 12, 10:40pm)
3. FindDuplicateCharacters ( string )
  (Fri, Jun 08, 5:01pm)
4. FieldRepetitionLast ( field ; maxRepetition )
  (Wed, Jun 06, 6:05pm)
5. CountModifiedRecords ( NameTimestampField ; StartTimestamp ; EndTimestamp )
  (Mon, May 28, 8:23am)
6. JSONArrayLength ( JSONArrayStr )
  (Fri, May 25, 7:46am)
7. interpolation (y1; y2; y3; x1; x2; x3; x1y1; x2y1; x1y2; x2y2; rnd)
  (Sat, May 19, 3:55am)
8. @JSONFormatElements ( json )
  (Tue, May 15, 3:31am)

RSS Feed of Custom Functions