function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

IRR calculation in Apex

Hello all,

Has anyone written code to calculate Internal Rate of Return using Apex?





Did you ever come up with a way to calculate IRRs in Apex?  I'm looking for something that can take a series of date and cashflow pairs and calculate an IRR.


Thank you,

Schubert R. TonarelliSchubert R. Tonarelli
Hi, I recommend this apex method that I did
Adam Levine 25Adam Levine 25
I'm not familiar with Apex. Are you able to provide instrucitons on how to implement the code above?