Hi Team, Here some cases, `calculateRate` will return `Double.NaN` -> [#NUM!], (https://github.com/apache/poi/blob/trunk/poi/src/main/java/org/apache/poi/ss/formula/functions/Rate.java#L99) But it can get the right result in Numbers case1: RATE(22,30000,20000,-82257625,0,0.1) Result: Double.NaN whereas in Numbers I get: 0.35397960290713076 -- case2: RATE(22,10000,10000,-313562750,0,0.1) Result: Double.NaN whereas in Numbers I get: 0.35397960290713076
I can confirm the result in Numbers, but I can also confirm that I get an error in Excel. In general we try to follow what Excel is doing. Since it works the same as in Excel, I reduce the importance to P3 / normal. How should we proceed here?
POI should try to match Excel results even if the Excel result is not ideal.
As POI strives to reproduce Excel results, and Excel also returns an error for the example provided, we will not change the RATE function to match the results of another application's implementation.