Hi Marcel,

Please have a look at http://poi.apache.org/guidelines.html in the "Submitting 
Patches" section.

Thanks and Regards,
Dave

On Dec 8, 2010, at 2:46 PM, Marcel May wrote:

> <npv.patch.txt>
> 
> Oops, the patch got swallowed.
> 
> On Dec 9, 2010, at 2:33 AM, Marcel May wrote:
> 
>> I can confirm this is a bug - just had the same problem.
>> 
>> a)  the NPV computation is wrong
>> -                    sum += ds[i] / Math.pow(rate + 1, i);
>> +                    sum += ds[i] / Math.pow(rate + 1, i+1);
>>              
>>   I think the computation should actually use the FinanceLib#npv method 
>> (which is correct).
>> 
>> b) The impl does not support ranges
>> 
>> I got a patch fix a) and b), including a test case:
>> 
>> 
>> 
>> Jon, do you want to create the bug ticket? Then I'll add my patch for it.
>> 
>> Cheers,
>> Marcel
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
> For additional commands, e-mail: user-h...@poi.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
For additional commands, e-mail: user-h...@poi.apache.org

Reply via email to