When could you actually retire? Drop a single script tag into your site, then use <retirement-calc-aca> as a custom HTML element anywhere on the page.
Sibling of <retirement-calc-spend> — same engine, different question.
Pick colors that match your site, then copy the CSS snippet at the bottom.
retirement-calc-aca {
--rc-accent: #4f8ec9;
--rc-bg: #ffffff;
--rc-surf: #f7f9fc;
--rc-text: #1a1f2e;
}
Drop this into your HTML:
<script src="https://app.retirementscenario.com/embed/v1/aca.js"></script>
<retirement-calc-aca></retirement-calc-aca>
Or pre-seed values relevant to your audience:
<retirement-calc-aca
plan-type="household"
current-age="55"
retirement-age="60"
annual-magi="70000"
household-size="2">
</retirement-calc-aca>
| Attribute | Default | Range |
|---|---|---|
plan-type | household | single or household |
current-age | 55 | 45 – 64 (must be pre-Medicare) |
retirement-age | 60 | currentAge – 65 (when ACA coverage starts) |
annual-magi | 70000 | 0 – 300,000 (Modified Adjusted Gross Income during bridge years, today's $) |
household-size | 2 | 1 – 6 (drives Federal Poverty Level threshold) |
Override CSS custom properties on the host:
retirement-calc-aca {
--rc-accent: #ff6b35; /* primary color */
--rc-bg: #ffffff; /* card background */
--rc-surf: #f7f9fc; /* sub-surface (result area) */
--rc-text: #1a1f2e;
--rc-muted: #6a7280;
--rc-border: rgba(20,30,50,0.10);
--rc-radius: 12px;
}
The element emits two custom events you can listen to:
document.querySelector('retirement-calc-aca')
.addEventListener('rc-calculated', (e) => {
console.log('Cliff status:', e.detail.cliffStatus);
console.log('Annual premium range:', e.detail.annualPremiumLow, '-', e.detail.annualPremiumHigh);
console.log('Total bridge cost:', e.detail.totalBridgeCostLow, '-', e.detail.totalBridgeCostHigh);
});
document.querySelector('retirement-calc-aca')
.addEventListener('rc-cta-clicked', (e) => {
console.log('User clicked CTA to:', e.detail.url);
});