[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 057033d 3/5: Fix defect introduced 20050114T1
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 057033d 3/5: Fix defect introduced 20050114T1947Z: load on only one policy fee |
Date: |
Tue, 13 Jun 2017 12:03:02 -0400 (EDT) |
branch: master
commit 057033d9b232a15444380cebbf57daa10541a2cf
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Fix defect introduced 20050114T1947Z: load on only one policy fee
The monthly policy fee was discounted for premium load, but the annual
policy fee was not.
---
ihs_basicval.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ihs_basicval.cpp b/ihs_basicval.cpp
index c2b8c74..46f4783 100644
--- a/ihs_basicval.cpp
+++ b/ihs_basicval.cpp
@@ -1168,7 +1168,9 @@ double BasicValues::GetModalPremMlyDed
}
}
- mly_ded /= 1.0 - Loads_->target_premium_load_maximum_premium_tax()[year];
+ double const load =
Loads_->target_premium_load_maximum_premium_tax()[year];
+ mly_ded /= 1.0 - load;
+ ann_ded /= 1.0 - load;
double const v12 = mly_ded_discount_factor(year, mode);
mly_ded *= (1.0 - std::pow(v12, 12.0 / mode)) / (1.0 - v12);