fixed xnpv calculation