Skip to content

Add Schedule D capital gain distributions memo variable#8850

Open
MaxGhenis wants to merge 1 commit into
PolicyEngine:mainfrom
MaxGhenis:feat/schedule-d-capital-gain-distributions
Open

Add Schedule D capital gain distributions memo variable#8850
MaxGhenis wants to merge 1 commit into
PolicyEngine:mainfrom
MaxGhenis:feat/schedule-d-capital-gain-distributions

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Summary

Adds two variables:

  • schedule_d_capital_gain_distributions — input memo for the Schedule D line 13 amount. It is a component of long_term_capital_gains (already included there), so it does not separately enter gross income — Case 2 in the tests pins AGI unchanged.
  • capital_gain_distributions — adds-total across both reporting routes (line 13 + the non-Schedule-D Form 1040 line 7 route, non_sch_d_capital_gains).

Why

Reforms that treat fund distributions differently from other realized gains — the GROWTH Act (H.R. 2089 / S. 1839) defers tax on automatically reinvested RIC capital gain dividends — need a variable to act on, and the populace imputation (PolicyEngine/populace#274) needs an engine-known column to fill. Default 0 → zero behavior change for every existing dataset.

Companion to #8839 (which wires the non-Schedule-D route into AGI/NII).

🤖 Generated with Claude Code

schedule_d_capital_gain_distributions carries the Schedule D line 13
amount as a memo component of long_term_capital_gains (no separate AGI
entry), and capital_gain_distributions totals both reporting routes.
Gives reforms that treat fund distributions differently from other
realized gains (e.g. the GROWTH Act, H.R. 2089) a variable to act on,
and gives the data pipeline a column to impute (PolicyEngine/populace#274).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f9e58e7) to head (dd352fc).
⚠️ Report is 44 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #8850   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         2    -1     
  Lines           55        19   -36     
=========================================
- Hits            55        19   -36     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant