Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Thumbs.db
# Data/cache
data/
.cache/
!aca_calc/data/
!aca_calc/data/*.json

# Node.js / React
node_modules/
Expand Down
13 changes: 0 additions & 13 deletions .streamlit/config.toml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ format:
@echo "Formatting complete"

debug:
uv run streamlit run app.py
npm run dev

clean:
rm -rf __pycache__ .pytest_cache .coverage htmlcov
Expand Down
97 changes: 60 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,54 @@
# ACA Premium Tax Credit Calculator

Compare 2026 Premium Tax Credits with and without Inflation Reduction Act (IRA) enhancements.
Compare 2026 Premium Tax Credits with and without Inflation Reduction Act
(IRA) enhancements, and pair household impacts with local Marketplace
enrollment context.

**🔗 [Try the Calculator](https://aca-calc.vercel.app/)**
**Try the calculator:** https://www.policyengine.org/us/aca-calc#calculator

## Overview

The Inflation Reduction Act enhanced ACA subsidies through 2025. This calculator shows what your credits would be in 2026 with and without extending these enhancements.
The Inflation Reduction Act enhanced ACA subsidies through 2025. This
calculator shows what household credits would be in 2026 with and without
extending those enhancements.

**Key Differences:**
- **With IRA Extension**: No income cap, lower premium contributions (0-8.5% of income)
- **After IRA Expires**: 400% FPL cap ("subsidy cliff"), higher contributions (2-9.5% of income)
Key differences:

## Quick Start

### Use the Live App
- **With IRA extension:** no income cap, lower premium contributions
(0-8.5% of income)
- **After IRA expires:** 400% FPL cap ("subsidy cliff"), higher contributions
(2-9.5% of income)
- **Local impact:** Marketplace enrollment context for HealthCare.gov-platform
geographies where fine-grained CMS PUF data are available

Visit **[https://aca-calc.vercel.app/](https://aca-calc.vercel.app/)** to use the calculator immediately.
## Quick Start

### Run Locally

```bash
# Install dependencies
pip install -r requirements.txt

# Run the app
streamlit run app.py
npm install
npm run dev
```

The app will open at http://localhost:8501
The React app runs at http://localhost:3000/us/aca-calc by default. The
calculator is available at http://localhost:3000/us/aca-calc#calculator.

Python tests and data utilities use the Python package in `aca_calc/`:

```bash
uv run pytest
```

## Features

- ✅ **All 50 States + DC**: Accurate calculations for every jurisdiction
- ✅ **3,143 Counties**: County-specific marketplace pricing
- ✅ **Real-time Comparison**: Side-by-side baseline vs. IRA extension
- ✅ **Interactive Charts**: See how credits change across income levels
- ✅ **Household Flexibility**: Single, married, with/without dependents
- All 50 states plus DC
- County-specific ACA pricing inputs
- Interactive household calculator for baseline, IRA extension, and additional
reform scenarios
- Local impact page with county and congressional district Marketplace
enrollment context
- Compact checked-in CMS-style enrollment extracts, structured for later
ingestion of processed full PUF files

## Example Results

Expand All @@ -50,32 +62,43 @@ The app will open at http://localhost:8501
## Technical Details

Built with:
- **[PolicyEngine US](https://policyengine.org)**: Open-source tax-benefit microsimulation
- **[Streamlit](https://streamlit.io)**: Interactive web interface
- **[Plotly](https://plotly.com)**: Data visualization

County data sourced from PolicyEngine's ACA rating areas database.
- **Next.js + React:** interactive web application
- **PolicyEngine US:** open-source tax-benefit microsimulation
- **Recharts + D3:** data visualization
- **Python utilities:** enrollment fixture loaders and ingest helpers

County data are sourced from PolicyEngine's ACA rating area data. Enrollment
context starts with compact checked-in extracts under `aca_calc/data/` and can
be repointed to processed CMS Marketplace PUF files later.

## Project Structure

```
```text
.
├── app.py # Main Streamlit application
├── counties.json # County data for all states
├── process_counties.py # County data processor
├── requirements.txt # Python dependencies
├── tests/ # Test files
├── notebooks/ # Analysis notebooks
└── archive/ # Historical files
├── app/ # Next.js app shell
├── src/ # React UI, pages, and client-side helpers
│ ├── components/ # Calculator, charts, and shared components
│ └── views/LocalImpact.jsx # Local impact view
├── aca_calc/ # Python calculation and data-access helpers
│ ├── calculations/ # PolicyEngine household/PTC utilities
│ └── data/ # Compact checked-in enrollment extracts
├── tests/ # Python unit tests
├── package.json # React/Next scripts
├── pyproject.toml # Python package/dependencies
└── requirements.txt # Python runtime dependencies
```

## Development

```bash
# Run tests
python tests/test_reform_verification.py
npm run build
uv run pytest
```

To update county data:

# Update county data
```bash
python process_counties.py
```

Expand All @@ -85,4 +108,4 @@ Open source - see PolicyEngine US license for underlying calculations.

## Credits

Calculations powered by [PolicyEngine US](https://github.com/PolicyEngine/policyengine-us)
Calculations powered by [PolicyEngine US](https://github.com/PolicyEngine/policyengine-us).
Loading