Present Value is the value on a given date of a future payment or series of future payments, discounted to reflect the time value of money and other factors such as investment risk. And yes, I know it’s formula so don’t need that.
But I am wondering if this method is already predefined within the .NET libraries. I can’t find it. (And I guess .NET doesn’t contain this function so I will just have to use my own function instead.)
I have no use for any nice third-party components or samples written in C#. I have to use some third-party scripting solution which allows any standard .NET library. I can add custom references to third-party libraries and even write my own add-on modules, but am trying to avoid this.
The visual basic library has a Financial class in it. Financial.PV() should do the trick for you.
If you’re not using Visual Basic – you can still reference that library from your project in other languages and use the financial functions.
Per your comment that you can’t use the library directly, the visual basic source code inside the Financial.Pv function looks something like this…