In this PR I have corrected how DiscountRate and DiscountRateIdv are used in the CapitalInvestment calculation. Specifically, the logic has been updated so:
If DiscountRateIdv is not found in input data, or is empty, the calculation will fall back to using DiscountRate. This addresses issue #220
If DiscountRateIdv is found in input data, and has values, the calculation will pass DiscountRateIdv to the CRF calculation, and DiscountRate to the PVA calculation. This addresses #228
A test called TestCapitalInvestment has been added to test this logic. Also, the DicountRateIdv fixture was update so its values are different from the DiscountRate fixture.
Description
In this PR I have corrected how
DiscountRate
andDiscountRateIdv
are used in theCapitalInvestment
calculation. Specifically, the logic has been updated so:DiscountRateIdv
is not found in input data, or is empty, the calculation will fall back to usingDiscountRate
. This addresses issue #220DiscountRateIdv
is found in input data, and has values, the calculation will passDiscountRateIdv
to the CRF calculation, andDiscountRate
to the PVA calculation. This addresses #228A test called
TestCapitalInvestment
has been added to test this logic. Also, theDicountRateIdv
fixture was update so its values are different from theDiscountRate
fixture.Issue Ticket Number
Closes #220 Closes #228
Documentation
na