I am very very new to R script, and I have had some trouble with getting my R script IRR to match the excel calculated IRR. Excel is showing me 40.01% and Spotfire R script calc