Software Venture Consulting

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

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


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:  

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

Michael Horak, *COMMENT Visual Realisation
http://comment.cjb.net/

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:
156.9127744508813684


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

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

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.

Examples
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.

NOTE:
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 BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

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:
City/Location:
Comment:
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 2 + 6 =
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. ProperAllWords ( text )
  (Thu, Dec 14, 5:19pm)
2. MatchExist ( SourceTable.Field ; DestTable.Field ; ReturnField )
  (Thu, Dec 14, 1:07pm)
3. BVR_Format ( bvr )
  (Wed, Dec 13, 5:32pm)
4. NumberToHexadecimal(NumberValue)
  (Fri, Dec 08, 8:54am)
5. Get_BaseTable
  (Thu, Dec 07, 4:27pm)
6. JSONCreateVarsFromKeys ( json ; namespace )
  (Wed, Dec 06, 8:21pm)
7. GetTableNzme ( field )
  (Tue, Dec 05, 9:16pm)
8. TimeFormatAsText ( theTime )
  (Mon, Nov 13, 1:59pm)

RSS Feed of Custom Functions