Correct ROC placement: ROC defers to the investor's LTCG, like
appreciation - a taxable-account feature, not an IRA one Correction after user pushback. The earlier note "ROC does not help the taxable case - the deferral replicates the IRA" was WRONG: a traditional IRA defers to the ORDINARY rate at withdrawal, while ROC in a taxable account defers to the LTCG rate on a >1y sale (the distribution is basis-reducing and reappears inside the shareholder's own capital gain). Under the premise LTCG rate < future ordinary rate, ROC - like NAV appreciation - favors the taxable account. Contrast ordinary income (interest, ordinary divs, STCG): taxed at the ordinary rate in BOTH accounts, so only the IRA's deferral wins. taxplan.py: - _deferred_share(): per fund, share of 5y total return that defers to the investor = (NAV change + ROC) / total return, from the parsed per-share N-CSR table, max'd with the taxsplit appreciation share. - >= 50% deferred -> location "TAXABLE (defers to LTCG)" (renamed from "TAXABLE (accrues)"); 10-50% ROC in distributions -> note. - Merger-arb cap 0.35 -> 0.50: HMEZX's per-share table (52% NII / 30% gains / 18% ROC over 5y) refutes "mostly STCG" - HMEZX/MERVX are now MIXED (check 1099), not clean IRA. - RESEARCH.md: corrected placement write-up, incl. the distinction between the tax question and the fund-quality question (heavy ROC can mean principal erosion - PGSIX NAV -34%/5y - which affects selection, not the optimal account). App: order dict + filter updated to the new location name. Tests: merger-arb expectation updated to MIXED; 2 new checks for the ROC upgrade/note logic. 99/99 fundlab + 32/32 app.
This commit is contained in:
+31
-3
@@ -477,14 +477,42 @@ def test_taxplan() -> None:
|
||||
r["location"] == "TAXABLE (munis)" and r["score"] == 1.0,
|
||||
f"{r['location']}")
|
||||
|
||||
# merger arb: equity book but STCG character -> capped to IRA
|
||||
# merger arb: deal gains can be STCG but NII/ROC are mixed -> capped
|
||||
# to the MIXED band (the 1099 decides), not a clean IRA
|
||||
r = tp.classify("The Merger Fund",
|
||||
buckets=[{"name": "Equity (common)", "pct": 90},
|
||||
{"name": "Cash/MMF (short-term)", "pct": 10}])
|
||||
check("merger arb capped (STCG) -> IRA",
|
||||
r["location"] == "IRA" and r["score"] <= 0.35,
|
||||
check("merger arb capped (STCG) -> MIXED",
|
||||
r["location"] == "MIXED (check 1099)" and 0.35 < r["score"] <= 0.50,
|
||||
f"{r['location']} {r['score']}")
|
||||
|
||||
# ROC: >= half of the 5y return defers to the investor (LTCG on a
|
||||
# >1y sale) -> upgraded out of IRA; smaller ROC -> note only
|
||||
splits = {"X": {"appr_share": 0.05, "payout_12m": 0.03, "tot": 0.40}}
|
||||
r1 = tp.classify("ROC Fund",
|
||||
buckets=[{"name": "Bond (corporate)", "pct": 80},
|
||||
{"name": "Cash/MMF (short-term)", "pct": 20}])
|
||||
r1["location"] = "IRA" # what the score alone gave
|
||||
_real_rocs = tp._rocs
|
||||
# per-share tables record distributions as NEGATIVES (declared amounts)
|
||||
tp._rocs = lambda: {"X": {"nav": [100.0, 100.0], "tot": [-5.0, -5.0],
|
||||
"roc": [-4.5, -4.5], "nii": [-0.5, -0.5],
|
||||
"gains": []}}
|
||||
tp.finalize("X", r1, splits)
|
||||
check("ROC-heavy fund upgraded (defers to LTCG)",
|
||||
r1["location"] == "TAXABLE (defers to LTCG)", r1["location"])
|
||||
r2 = tp.classify("ROC Fund",
|
||||
buckets=[{"name": "Corporate bond", "pct": 80},
|
||||
{"name": "Cash/MMF (short-term)", "pct": 20}])
|
||||
tp._rocs = lambda: {"X": {"nav": [100.0, 100.0], "tot": [-5.0, -5.0],
|
||||
"roc": [-1.5, -1.5], "nii": [-3.5, -3.5],
|
||||
"gains": []}}
|
||||
tp.finalize("X", r2, splits)
|
||||
check("small ROC -> note, not a location change",
|
||||
r2["location"] == "IRA" and "return of capital" in r2["notes"],
|
||||
r2["location"] + " " + r2["notes"][:60])
|
||||
tp._rocs = _real_rocs
|
||||
|
||||
# money market -> flexible
|
||||
r = tp.classify("Plain Money Market Account",
|
||||
buckets=[{"name": "Cash/MMF (short-term)", "pct": 100}])
|
||||
|
||||
Reference in New Issue
Block a user