HP-41 Internal Rate of Return (IRR)
|
11-03-2024, 08:02 AM
(This post was last modified: 11-05-2024 01:51 PM by Ángel Martin.)
Post: #1
|
|||
|
|||
HP-41 Internal Rate of Return (IRR)
Calculation of IRR, Internal Rate of Return
i.e. interest rate for which the Net Present Value (NPV) is zero. Here's a short FOCAL routine I've used as benchmark while working on a MCODE version of IRR soon to be released. The routine prompts for the initial Capital investment C0, the number of periods N, and the first cash-flow C1. Based on C1 the remaining cash-flows are calculated using two options, LBL "IRR+" for the aithmetic: Cn = C1+k*(n-1) LBL "IRR*" for the geometric: Cn = C1* (1+k)^(n-1) with k being the ratio also an input prompted by the program. The program solves for IRR using SOLVE (or FROOT if you use the SandMath). In his version the Initial guesses are hard-coded to be 0.1 and 0.5 Example: With C0=(250.000,00), C1 = 100.000,00, N=5 arithmetic, k=50.000,000 => IRR = 56.72% geometric, k=0.05 (5%) => IRR = 32.50% Code: 1 LBL "IRR+" Cheers, ÁM "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HP-41 Internal Rate of Return (IRR) - Ángel Martin - 11-03-2024 08:02 AM
RE: HP-41 Internal Rate of Return (IRR) - Stephan61 - 11-05-2024, 09:27 AM
RE: HP-41 Internal Rate of Return (IRR) - Ángel Martin - 11-05-2024, 11:41 AM
RE: HP-41 Internal Rate of Return (IRR) - Ángel Martin - 11-05-2024, 01:54 PM
RE: HP-41 Internal Rate of Return (IRR) - Stephan61 - 11-05-2024, 02:09 PM
RE: HP-41 Internal Rate of Return (IRR) - Namir - 11-19-2024, 07:32 PM
RE: HP-41 Internal Rate of Return (IRR) - Ángel Martin - 11-20-2024, 08:26 AM
RE: HP-41 Internal Rate of Return (IRR) - Albert Chan - 11-20-2024, 01:57 PM
|
User(s) browsing this thread: 1 Guest(s)