jellybeannn -4 Junior Poster

Hi I'm coding in c# and I'm usiing the IIR function of Microsoft.VisualBasic.

I need values for 6 years that's 72months

if (i <= 72)
            {
                values[i] += C158_Calc;
            }
       
        B162_Calc = Financial.IRR(ref values, 0.1) * 12;
        row9["Month1"] = String.Format("{0:#,###,###,###.##}", B162_Calc);

this gives me this error:

Arguments are not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Arguments are not valid.


but if I say up to 10months it works, more than that not.


Any help please.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.