lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master a5279b7 5/7: Round gross and net withdrawals


From: Greg Chicares
Subject: [lmi-commits] [lmi] master a5279b7 5/7: Round gross and net withdrawals
Date: Wed, 26 Aug 2020 20:09:02 -0400 (EDT)

branch: master
commit a5279b7b3e7b4deb081299620c8f85fb24c67aec
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Round gross and net withdrawals
---
 ihs_avmly.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index 911ff3c..330aaeb 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -2332,7 +2332,7 @@ void AccountValue::TxTakeWD()
 
     if(Solving || mce_run_gen_curr_sep_full == RunBasis_)
         {
-        NetWD = std::min(RequestedWD, MaxWD);
+        NetWD = round_withdrawal()(std::min(RequestedWD, MaxWD));
         OverridingWD[Year] = NetWD;
         }
     else
@@ -2458,7 +2458,7 @@ void AccountValue::TxTakeWD()
         return;
         }
 
-    GrossWD = NetWD + std::min(WDFee, NetWD * WDFeeRate);
+    GrossWD = round_withdrawal()(NetWD + std::min(WDFee, NetWD * WDFeeRate));
 
     // Free partial surrenders: for instance, the first 20% of account
     // value might be withdrawn each policy year free of surrender
@@ -2479,7 +2479,7 @@ void AccountValue::TxTakeWD()
         non_free_wd = std::max(0.0, GrossWD - free_wd);
         }
     double partial_surrchg = non_free_wd * surrchg_proportion;
-    GrossWD += partial_surrchg;
+    GrossWD += round_withdrawal()(partial_surrchg);
 
     process_distribution(GrossWD);
     Dcv -= GrossWD;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]