[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 0f82d68 5/5: Fix defect introduced 20120822T1
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 0f82d68 5/5: Fix defect introduced 20120822T1138Z: wrong corridor in specamt load |
Date: |
Fri, 15 Sep 2017 07:51:31 -0400 (EDT) |
branch: master
commit 0f82d6874dced71d656eb48c6e41676aa3bd377d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Fix defect introduced 20120822T1138Z: wrong corridor in specamt load
The specamt-load base should reflect the corridor DB on the issue date.
Instead, for inforce, it reflected the current inforce corridor DB.
---
ihs_avmly.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index 7b9dc5d..07d3dec 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -1602,10 +1602,12 @@ void AccountValue::TxSetBOMAV()
LMI_ASSERT(yare_input_.InforceSpecAmtLoadBase <= SpecAmtLoadLimit);
SpecAmtLoadBase =
(0 == Year && 0 == Month)
- ? InvariantValues().TermSpecAmt[0] + InvariantValues().SpecAmt[0]
+ ? std::max
+ (InvariantValues().TermSpecAmt[0] +
InvariantValues().SpecAmt[0]
+ ,NetPmts[0] * YearsCorridorFactor
+ )
: yare_input_.InforceSpecAmtLoadBase
;
- SpecAmtLoadBase = std::max(SpecAmtLoadBase, NetPmts[Month] *
YearsCorridorFactor);
SpecAmtLoadBase = std::min(SpecAmtLoadBase, SpecAmtLoadLimit);
}
- [lmi-commits] [lmi] master updated (434cf61 -> 0f82d68), Greg Chicares, 2017/09/15
- [lmi-commits] [lmi] master 67eb163 3/5: Add an assertion, exposing a defect, Greg Chicares, 2017/09/15
- [lmi-commits] [lmi] master e6e566b 1/5: Put a useful command in zsh history, Greg Chicares, 2017/09/15
- [lmi-commits] [lmi] master 8c4e38c 2/5: Improve documentation in xml schemata for input, Greg Chicares, 2017/09/15
- [lmi-commits] [lmi] master a4e3e7e 4/5: Fix defect introduced 20120822T1138Z: missing inforce specamt-load max, Greg Chicares, 2017/09/15
- [lmi-commits] [lmi] master 0f82d68 5/5: Fix defect introduced 20120822T1138Z: wrong corridor in specamt load,
Greg Chicares <=