[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 48caef4 07/15: Resolve a marked defect [313]
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 48caef4 07/15: Resolve a marked defect [313] |
Date: |
Sun, 14 Feb 2021 18:24:53 -0500 (EST) |
branch: master
commit 48caef4ceef2cffc969bf5f93d0b4e8430858163
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Resolve a marked defect [313]
---
interest_rates.cpp | 26 ++++++++++++--------------
1 file changed, 12 insertions(+), 14 deletions(-)
diff --git a/interest_rates.cpp b/interest_rates.cpp
index 40655f5..8bacde1 100644
--- a/interest_rates.cpp
+++ b/interest_rates.cpp
@@ -837,18 +837,15 @@ void InterestRates::InitializeHoneymoonRates()
}
}
-// TODO ?? Still needs a bit of work.
-//
-// When the M&E charge depends on monthly total case assets, the
-// separate-account rate is no longer an annual invariant and must be
-// recalculated here each month. There is no corresponding general-
-// account adjustment because we don't anticipate needing it, though
-// perhaps that is shortsighted.
-//
-// At entry, non-const reference inputs hold tiered annual values.
-// This function adds non-tiered complements to each of these values,
-// except that (bogusly) it adds the tiered IMF into the non-tiered
-// IMF held in this class and doesn't add non-tiered M&E to tiered M&E.
+/// Recalculate sepacct net rate if it depends on assets.
+///
+/// When separate-account charges depend on monthly total case assets,
+/// the separate-account rate is no longer an annual invariant and
+/// must be recalculated each month. No corresponding general-account
+/// adjustment has ever been wanted.
+///
+/// Non-tiered complements are added to each argument as needed.
+
void InterestRates::DynamicMlySepAcctRate
(mcenum_gen_basis gen_basis
,mcenum_sep_basis sep_basis
@@ -858,8 +855,9 @@ void InterestRates::DynamicMlySepAcctRate
,double AnnualSepAcctMiscChargeRate
)
{
- InvestmentManagementFee_[year] += AnnualSepAcctIMFRate;
- AnnualSepAcctMiscChargeRate += ExtraSepAcctCharge_ [year];
+ AnnualSepAcctMandERate += MAndERate_[gen_basis] [year];
+ AnnualSepAcctIMFRate += InvestmentManagementFee_[year];
+ AnnualSepAcctMiscChargeRate += ExtraSepAcctCharge_ [year];
double dynamic_spread =
AnnualSepAcctMandERate
- [lmi-commits] [lmi] master updated (50d271d -> 3143a30), Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master 4405433 01/15: Expunge disused stable-value calculations [320], Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master dd991f3 05/15: Resolve a marked defect [315], Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master f74f14c 06/15: Avoid non-const reference arguments, Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master 48caef4 07/15: Resolve a marked defect [313],
Greg Chicares <=
- [lmi-commits] [lmi] master 9b46a92 08/15: Assume genacct and loan rates are always needed [312], Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master a7bf1d0 04/15: Remove a duplicative defect marker [316], Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master d58eb9b 12/15: Remove assertions that provably cannot fire, Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master bc8e2d9 13/15: Remove a defunct defect marker [307], Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master dbac503 14/15: Demote a marked defect [306], Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master 791ccce 02/15: Expunge disused stable-value fund charge from database, Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master 9f4e2a2 09/15: Expunge an unused member function [311], Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master 387eeaa 10/15: Prepare to resolve some marked defects, Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master cb5e424 11/15: Resolve several marked defects [308], Greg Chicares, 2021/02/14
- [lmi-commits] [lmi] master 4912e96 03/15: Simplify [317], Greg Chicares, 2021/02/14