PageSourceSearch

https://smartasset.com/_next/static/chunks/9748-f5557ed55fb5843a.js

js smartasset.com collected 2026-09-24 08:26:58 UTC 186,611 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9748],{1534:e=>{e.exports={calculatorWrapper:"RetirementCalculator_calculatorWrapper__NLypW",headerContainer:"RetirementCalculator_headerContainer__tO1T9",headerTitle:"RetirementCalculator_headerTitle__3pYpk",checkList:"RetirementCalculator_checkList__MM2vK",checkItem:"RetirementCalculator_checkItem__Syq1k",checkIcon:"RetirementCalculator_checkIcon__GF7SR",scrollTarget:"RetirementCalculator_scrollTarget__K_bgu",recalcError:"RetirementCalculator_recalcError__x7udb",mainPanels:"RetirementCalculator_mainPanels__U8R6s",singlePageLayout:"RetirementCalculator_singlePageLayout__ZhKPn",singlePageInputCol:"RetirementCalculator_singlePageInputCol__oIVce",singlePageResultsCol:"RetirementCalculator_singlePageResultsCol__Q7cCE",singlePagePlaceholder:"RetirementCalculator_singlePagePlaceholder__m2_tP",placeholderCarousel:"RetirementCalculator_placeholderCarousel__Txoct",singlePagePlaceholderHeading:"RetirementCalculator_singlePagePlaceholderHeading__ytoUB"}},3452:e=>{e.exports={pensionSection:"RetirementPensionField_pensionSection__s9Mpe",sectionHeader:"RetirementPensionField_sectionHeader__0utMt",sectionLabel:"RetirementPensionField_sectionLabel__DAe_3",typeRow:"RetirementPensionField_typeRow__S6YIP",typeSelectWrapper:"RetirementPensionField_typeSelectWrapper__RbMoP",removeButton:"RetirementPensionField_removeButton__1L3Gn",subField:"RetirementPensionField_subField__nBxMF",subFieldLabel:"RetirementPensionField_subFieldLabel__D04Le",addButton:"RetirementPensionField_addButton__erXhP"}},4194:e=>{e.exports={advisorValue:"InvestmentAdvisorValueOutput_advisorValue__wEDNw",value:"InvestmentAdvisorValueOutput_value__d2HAF",tooltipWrap:"InvestmentAdvisorValueOutput_tooltipWrap__t_9bW"}},4589:(e,a,t)=>{"use strict";t.d(a,{c:()=>r});var n=t(56498);let r=async e=>(0,n.t0)("/calculators/social-security",e)},4908:(e,a,t)=>{"use strict";t.d(a,{E1:()=>c,GO:()=>d,M$:()=>m,Z$:()=>u,mB:()=>i,nZ:()=>o,sJ:()=>l,xD:()=>r});var n=t(17005);let r=e=>e.maritalStatus===n.fT,s=e=>r(e)?"MARRIED_FILING_JOINTLY":"SINGLE",l=(e,a,t)=>{let n=null!=t?t:e.ssElectionAge,l=r(e);return{birthYear:e.birthYear,currentIncome:e.currentIncome,desiredRetirementAge:n,ssElectionAge:n,inflationRate:e.inflationRate/100,filingStatus:s(e),...l?(e=>({spouseBirthYear:e.spouseBirthYear,spouseIncome:e.spouseIncome,spouseDesiredRetirementAge:e.spouseElectionAge,spouseElectionAge:e.spouseElectionAge}))(e):{}}},i=e=>{var a;return Object.entries(null!=(a=e.annualBenefits)?a:{}).map(e=>{let[a,t]=e;return[Number(a),t]}).sort((e,a)=>{let[t]=e,[n]=a;return t-n})},o=e=>{var a,t;return null!=(t=null==(a=i(e)[0])?void 0:a[1])?t:e.maxFamilyBenefit},c={defaultInputs:n._4,constraints:n.YE},u={primaryAime:0,primaryPia:0,primaryEarnerAnnualBenefit:0,maxFamilyBenefit:0,annualBenefits:{}},d=e=>e/n.Sf,m=(e,a)=>({"current-url":window.location.href,"input1-birth-year":e.birthYear,"input2-income":e.currentIncome,"input3-filing-status":s(e),"input4-election-age":e.ssElectionAge,"input5-inflation-rate":e.inflationRate,"output1-annual-benefit":o(a),"output2-election-year":(e=>{var a,t;return null!=(t=null==(a=i(e)[0])?void 0:a[0])?t:null})(a)})},10401:e=>{e.exports={advisorMarketingPlatformSection:"CtaAmp_advisorMarketingPlatformSection__2ejLp"}},17005:(e,a,t)=>{"use strict";t.d(a,{Ol:()=>o,Sf:()=>i,YE:()=>l,_4:()=>s,bn:()=>d,fT:()=>r,lj:()=>n,q2:()=>c,sc:()=>u});let n=[62,66,70],r=1,s={birthYear:1970,currentIncome:1e5,maritalStatus:0,ssElectionAge:67,inflationRate:2,spouseBirthYear:1970,spouseIncome:1e5,spouseElectionAge:67},l={birthYear:{label:"Birth Year",type:"number",min:1920,max:new Date().getFullYear(),step:1,tooltipMessage:"",disabled:!1,error:"",formatMethod:Number.parseInt},currentIncome:{label:"Current Annual Income",type:"currency",min:0,max:1e8,step:1,tooltipMessage:"Enter your pre-tax annual earnings that are subject to Social Security tax.",disabled:!1,error:"",formatMethod:Number.parseFloat},maritalStatus:{label:"Marital Status",type:"select",tooltipMessage:"Select your marital status. If you select married, we’ll ask for information about your spouse.",options:[{value:0,label:"Single"},{value:r,label:"Married"}],disabled:!1,error:"",formatMethod:Number.parseInt},ssElectionAge:{label:"Social Security Election Age",type:"number",min:62,max:70,step:1,tooltipMessage:"The age you plan to start receiving Social Security retirement benef
1its. This could be different from the age you stop working. Your monthly retirement benefit is generally lower if you claim before your full retirement age and higher if you delay claiming, but only up to age 70.",disabled:!1,error:"",formatMethod:Number.parseInt},inflationRate:{label:"Inflation Rate",type:"percentage",min:0,max:25,step:"0.01",tooltipMessage:"The rate at which the general level of prices for goods and services rises each year. We will use this rate to project future earnings and benefit amounts. This is an assumption and is not a forecast of future Social Security cost-of-living adjustments.",disabled:!1,error:"",formatMethod:Number.parseFloat},spouseBirthYear:{label:"Spouse Birth Year",type:"number",min:1920,max:new Date().getFullYear(),step:1,tooltipMessage:"",disabled:!1,error:"",formatMethod:Number.parseInt},spouseIncome:{label:"Spouse Current Annual Income",type:"currency",min:0,max:1e8,step:1,tooltipMessage:"Your spouse’s pre-tax annual earnings from their W2 job, business, or other sources.",disabled:!1,error:"",formatMethod:Number.parseFloat},spouseElectionAge:{label:"Spouse Social Security Election Age",type:"number",min:62,max:70,step:1,tooltipMessage:"The age your spouse plans to start receiving Social Security retirement benefits.",disabled:!1,error:"",formatMethod:Number.parseInt}},i=12,o="$--",c="This estimate is based on the covered earnings and claiming-age information you enter and the calculator’s stated assumptions. Your actual Social Security benefit may differ.",u=e=>"Estimated annual Social Security benefit starting at age ".concat(e,":"),d=e=>"Estimated monthly Social Security benefit starting at age ".concat(e,":")},18623:e=>{e.exports={relatedContent:"RelatedContent_relatedContent__ieyX5",cardContainer:"RelatedContent_cardContainer__VwQ1S",card:"RelatedContent_card__pOvV_",title:"RelatedContent_title__DUs0L",imageContainer:"RelatedContent_imageContainer__nLVwx",cardHeader:"RelatedContent_cardHeader__59R6W",category:"RelatedContent_category__zMI2r",cardMeta:"RelatedContent_cardMeta__bte9W",date:"RelatedContent_date__3Q8FJ",readMore:"RelatedContent_readMore__WIo3w",cardLink:"RelatedContent_cardLink__fn354",heading:"RelatedContent_heading__qlSDe",horizontalCards:"RelatedContent_horizontalCards__uygch",embla:"RelatedContent_embla__Q1Hck",emblaContainer:"RelatedContent_emblaContainer__9KEAV",emblaSlide:"RelatedContent_emblaSlide__6DF9I",emblaDots:"RelatedContent_emblaDots__iVN7f",emblaDot:"RelatedContent_emblaDot__YcYnf",emblaDotActive:"RelatedContent_emblaDotActive__UeiQj"}},20365:e=>{e.exports={borderWrapper:"AdvisorCta_borderWrapper__wTRe8",content:"AdvisorCta_content__bhfiK",textBlock:"AdvisorCta_textBlock__yO1AN",header:"AdvisorCta_header__em1B3",subtext:"AdvisorCta_subtext__PvoPL",headshot:"AdvisorCta_headshot__4gbnT",ctaButton:"AdvisorCta_ctaButton__MwrS0"}},22014:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var n=t(95155);let r=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{children:"This hypothetical example is for illustrative purposes only and does not represent an actual client or specific security. Actual results will vary. Past performance is not a guarantee of future results."}),(0,n.jsx)("p",{children:"SmartAsset does not provide legal, tax, accounting, financial or investment advice. SmartAsset may refer users to third-party advisers registered or chartered as fiduciaries with a U.S. regulatory body. Articles, opinions and tools are provided for general informational purposes only and are not intended to provide individualized advice or recommendations. Consult an appropriate legal, tax, accounting or financial professional regarding your individual circumstances."}),(0,n.jsx)("p",{children:"This material does not constitute an offer to buy or sell any security or other investment. All investing involves risk, including the possible loss of principal. Working with an adviser generally involves fees and expenses, which will reduce investment returns. There is no guarantee that working with an adviser will improve investment performance or produce any particular financial outcome. A fiduciary duty does not eliminate all potential conflicts of interest."}),(0,n.jsx)("p",{children:"Indexes are unmanaged and do not reflect the deduction of transaction costs, management fees or other expenses. It is not possible to invest directly in an index. Exposure to an asset class represented by an index may be available through investable products that seek to track or otherwise provide exposure to that index."}),(0,n.jsx)("p",{children:"Certain information, including prices, quotations and statistics, was obtained from sources believed to be reliable, but SmartAsset does not guarantee its accuracy or c
1ompleteness."})]})},22026:e=>{e.exports={incomeTaxCalculator:"IncomeTaxCalculator_incomeTaxCalculator__L0RGz",formContainer:"IncomeTaxCalculator_formContainer__gGOUI",resultsContainer:"IncomeTaxCalculator_resultsContainer__eDq_X",resultBreakdownTitle:"IncomeTaxCalculator_resultBreakdownTitle__Grg08",secondAd:"IncomeTaxCalculator_secondAd__L7BaZ",breakdownTable:"IncomeTaxCalculator_breakdownTable__r_fxp",breakdownHeaderCell:"IncomeTaxCalculator_breakdownHeaderCell__nXJVM",breakdownCell:"IncomeTaxCalculator_breakdownCell__JnU_P",breakdownTotalCell:"IncomeTaxCalculator_breakdownTotalCell__YYfew",breakdownCellCenter:"IncomeTaxCalculator_breakdownCellCenter__SDUA5",mobileLabel:"IncomeTaxCalculator_mobileLabel__TnBIF",desktopLabel:"IncomeTaxCalculator_desktopLabel__6OmP7",breakdownCellRight:"IncomeTaxCalculator_breakdownCellRight__oMHOH",breakdownTooltip:"IncomeTaxCalculator_breakdownTooltip__PMVvC",rateToggle:"IncomeTaxCalculator_rateToggle__Sw1wm",rateToggleBtn:"IncomeTaxCalculator_rateToggleBtn__U3r8s",rateToggleBtnActive:"IncomeTaxCalculator_rateToggleBtnActive__bqR_D",loadingIndicator:"IncomeTaxCalculator_loadingIndicator__3zffx",advancedFormFields:"IncomeTaxCalculator_advancedFormFields___pMia",onboardingCtaSlot:"IncomeTaxCalculator_onboardingCtaSlot__0dZpZ"}},22238:(e,a,t)=>{"use strict";t.d(a,{A:()=>m});var n=t(95155),r=t(85203),s=t.n(r),l=t(57740),i=t.n(l),o=t(89762),c=t.n(o),u=t(9088),d=t(4908);let m=e=>{let{form:a,onCalculate:t,isCalculating:r=!1}=e,l=(0,d.xD)(a.inputs);return(0,n.jsxs)("form",{className:s()(i().calculatorForm,i().segmentedForm,c().formContainer),onSubmit:e=>{e.preventDefault(),t()},children:[(0,n.jsxs)("div",{className:i().formCard,children:[(0,n.jsx)("div",{className:i().formCardHeader,children:"Your Details"}),(0,n.jsxs)("div",{className:i().formInputsContainer,children:[(0,n.jsx)(u.A,{...a.getInputGroupProps("birthYear")}),(0,n.jsx)(u.A,{...a.getInputGroupProps("currentIncome")}),(0,n.jsx)(u.A,{...a.getInputGroupProps("maritalStatus")}),(0,n.jsx)(u.A,{...a.getInputGroupProps("ssElectionAge")}),(0,n.jsx)(u.A,{...a.getInputGroupProps("inflationRate")})]})]}),l&&(0,n.jsxs)("div",{className:i().formCard,children:[(0,n.jsx)("div",{className:i().formCardHeader,children:"Spouse Details"}),(0,n.jsxs)("div",{className:i().formInputsContainer,children:[(0,n.jsx)(u.A,{...a.getInputGroupProps("spouseBirthYear")}),(0,n.jsx)(u.A,{...a.getInputGroupProps("spouseIncome")}),(0,n.jsx)(u.A,{...a.getInputGroupProps("spouseElectionAge")})]})]}),(0,n.jsx)("button",{type:"submit",className:i().calculateButton,disabled:r,"aria-busy":r,"aria-label":r?"Calculating":void 0,children:r?(0,n.jsx)("i",{className:"fa fa-circle-notch fa-spin"}):"Calculate"})]})}},23857:e=>{e.exports={header:"LongevityProjection_header__rRp2T",headerIcon:"LongevityProjection_headerIcon__MXlz6",subtitle:"LongevityProjection_subtitle__qrVte"}},24164:e=>{e.exports={block:"SocialSecurityAdvisorCta_block__eEk7U",icon:"SocialSecurityAdvisorCta_icon__PV40M",button:"SocialSecurityAdvisorCta_button__Kfhkw",heading:"SocialSecurityAdvisorCta_heading__JOw8G",header:"SocialSecurityAdvisorCta_header__RLTLZ",subheader:"SocialSecurityAdvisorCta_subheader__XgEZJ"}},24294:(e,a,t)=>{"use strict";t.d(a,{A:()=>o});var n=t(95155),r=t(12115),s=t(47650),l=t(40477),i=t.n(l);let o=e=>{let{isOpen:a,onClose:t,children:l}=e;return((0,r.useEffect)(()=>{if(!a)return;let e=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a,t]),"undefined"==typeof document)?null:(0,s.createPortal)((0,n.jsx)("div",{className:"".concat(i().overlay," ").concat(a?i().overlayOpen:""),"aria-hidden":!a,children:(0,n.jsxs)("div",{className:i().dialog,role:"dialog","aria-modal":"true",children:[(0,n.jsx)("button",{type:"button",className:i().close,onClick:t,"aria-label":"Close",children:(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,n.jsx)("path",{d:"M18 6L6 18"}),(0,n.jsx)("path",{d:"M6 6l12 12"})]})}),l]})}),document.body)}},25778:e=>{e.exports={nextStepsPanel:"NextSteps_nextStepsPanel__WFKA2",heroSection:"NextSteps_heroSection__grRXD",heroText:"NextSteps_heroText__HVfEw",heroHeading:"NextSteps_heroHeading__wiRth",heroSubtext:"NextSteps_heroSubtext__7jB16",findAdvisorCta:"NextSteps_findAdvisorCta__a4MjK",heroImage:"NextSteps_heroImage__0bISa",divider:"NextSteps_divider__X1cBk",resourcesHeading:"NextSteps_resourcesHeading__2aR8k",resourceCards:"NextSteps_resourceCards__XloAc",resourceCard:"NextSteps_resourceCard__oracM",resourceImage:"NextSteps_resourceImage__DqBbT",resourceCardContent:"NextSteps_resourceCardContent__S1bYH",resourceTitle:"NextSteps_resourceTitle__fZsiU",resourceDescription:"NextSteps_resourceDescription__1r78e",learnMoreCta:"NextSteps_learnMoreCta__fb381",embla:"NextSteps_embla__JFRed",emblaContainer:"NextSteps_emblaContainer__QfooW",emblaSlide:"NextSteps_emblaSlide__kS_ky",emblaDots:"NextSteps_emblaDots__JudJ5",emblaDot:"NextSteps_emblaDot__neREc",emblaDotActive:"NextSteps_emblaDotActive__LlDgE"}},25932:(e,a,t)=>{"use strict";t.d(a,{default:()=>u});var n=t(95155),r=t(12115),s=t(68072),l=t(63783),i=t.n(l),o=t(61792),c=t(53979);let u=e=>{let{children:a}=e,t=(0,c.B)(1200),[l,u]=(0,s.A)({loop:!1,align:"start",active:t}),d=(0,c.q)(u);if(!a)return null;let m=r.Children.toArray(a).filter(e=>r.isValidElement(e)&&"div"===e.type);return 0===m.length?null:(0,n.jsxs)("aside",{className:i().relatedLinksContainer,children:[(0,n.jsx)("div",{className:i().heading,children:"You May Also Like"}),(0,n.jsx)("div",{className:i().embla,ref:l,children:(0,n.jsx)("div",{className:i().emblaContainer,children:m.map((e,a)=>{let t=(0,o.jw)(e),r=(0,n.jsx)("div",{className:"".concat(i().linkCard," ").concat(t?i().clickable:""),onClick:(e=>()=>{e&&window.open(e,"_self")})(t),style:{cursor:t?"pointer":"default"},children:e});return(0,n.jsx)("div",{className:i().emblaSlide,children:r},a)})})}),(0,n.jsx)("div",{className:i().emblaDots,children:m.map((e,a)=>(0,n.jsx)("div",{className:"".concat(i().emblaDot," ").concat(a===d?i().emblaDotActive:"")},a))})]})}},26949:e=>{e.exports={toggleSwitch:"ToggleSwitch_toggleSwitch___qP_2",toggleInput:"ToggleSwitch_toggleInput__9kz36",toggleLabel:"ToggleSwitch_toggleLabel___6PeJ",toggleSlider:"ToggleSwitch_toggleSlider___yUpl",toggleText:"ToggleSwitch_toggleText__beu8b"}},27362:e=>{e.exports={transactionTypeToggle:"FutureValueCalculator_transactionTypeToggle__hh9Yg",resultCopy:"FutureValueCalculator_resultCopy__HllPq",resultCopyValue:"FutureValueCalculator_resultCopyValue__NI4R8",tooltipDesktopOnly:"FutureValueCalculator_tooltipDesktopOnly__30ro_",resultFigure:"FutureValueCalculator_resultFigure__m40A_",resultCopyStandalone:"FutureValueCalculator_resultCopyStandalone__4BBql",resultCopyValueStandalone:"FutureValueCalculator_resultCopyValueStandalone__t3xHK"}},29026:(e,a,t)=>{"use strict";t.d(a,{default:()=>_});var n=t(95155),r=t(12115),s=t(20063),l=t(56498);let i=async e=>{let a={...e};return a.annualRateOfReturn=Number((a.annualRateOfReturn/100).toFixed(6)),await (0,l.t0)("/calculators/rmd",a)};var o=t(57740),c=t.n(o),u=t(9088),d=t(57902);let m=new Date().getFullYear()-1,h={birthYear:{label:"Birth Year",type:"number",min:1920,max:2050,step:1,disabled:!1,error:"",tooltipMessage:"This will determine when your first RMD is due.",formatMethod:Number.parseInt},iraBalance:{label:"Total IRA Balance (as of 12/31/".concat(m,")"),type:"currency",min:0,max:1e8,step:1,disabled:!1,error:"",tooltipMessage:"Add up all of your IRA balances (excluding Roth and inherited IRAs) here.",formatMethod:Number.parseFloat},account401kBalance1:{label:"401(k) Balance #1 (as of 12/31/".concat(m,")"),type:"currency",min:0,max:1e8,step:1,disabled:!1,error:"",tooltipMessage:"If you have a 457(b), 403(b) or TSP, add that balance here.",formatMethod:Number.parseFloat},account401kBalance2:{label:"401(k) Balance #2 (as of 12/31/".concat(m,")"),type:"currency",min:0,max:1e8,step:1,disabled:!1,error:"",tooltipMessage:"If you have a 457(b), 403(b) or TSP, add that balance here.",formatMethod:Number.parseFloat},annualRateOfReturn:{label:"Annual Rate of Return",type:"percentage",min:.01,max:100,step:.
101,disabled:!1,error:"",tooltipMessage:"This is the average rate at which you expect your investments to grow each year.",formatMethod:Number.parseFloat}};var p=t(78535),g=t(8036),v=t(14538),f=t(73866),x=t(13975);let y=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.A,{title:"About This Calculator",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{children:"This calculator estimates RMDs by dividing the user's prior year's Dec. 31 account balance by the IRS Distribution Period based on their age. Users can enter their birth year, prior-year balances and an expected annual return to estimate the timing and amount of future RMDs."}),(0,n.jsx)("p",{children:"For IRAs (excluding Roth IRAs), users may combine balances and take the total RMD from one or more accounts. For 401(k)s and similar workplace plans*, RMDs must be calculated and taken separately from each account, so balances should be entered individually."}),(0,n.jsxs)("p",{children:[(0,n.jsx)("sup",{children:"*"}),"The IRS allows those with multiple 403(b) accounts to aggregate their balances and split their RMDs across these accounts."]})]})}),(0,n.jsx)(x.A,{title:"Assumptions",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{children:"This calculator assumes users have an RMD age of either 73 or 75. Users born between 1951 and 1959 are required to take their first RMD by April 1 of the year following their 73rd birthday. Users born in 1960 and later must take their first RMD by April 1 of the year following their 75th birthday."}),(0,n.jsx)("p",{children:"This calculator uses the IRS Uniform Lifetime Table to estimate RMDs. This table generally applies to account owners age 73 or older whose spouse is either less than 10 years younger or not their sole primary beneficiary."}),(0,n.jsx)("p",{children:"However, if a user's spouse is more than 10 years younger and is their sole primary beneficiary, the IRS Joint and Last Survivor Expectancy Table must be used instead. Likewise, if the user is the beneficiary of an inherited IRA or retirement account, RMDs must be calculated using the IRS Single Life Expectancy Table. In these cases, users will need to calculate their RMD manually or consult a finance professional."}),(0,n.jsx)("p",{children:"For users already required to take an RMD for the current year, the calculator uses their account balance as of December 31 of the previous year to compute the RMD. For users who haven't yet reached RMD age, the calculator applies their expected annual rate of return to that same prior-year-end balance to project future balances, which are then used to estimate RMDs."})]})}),(0,n.jsx)(x.A,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{children:"This RMD calculator uses the IRS Uniform Lifetime Table, but certain users may need to use a different IRS table depending on their beneficiary designation or marital status. It's the user's responsibility to confirm which table applies to their situation, and tables may be subject to change."}),(0,n.jsx)("p",{children:"Actual results may vary based on individual circumstances, future account performance and changes in tax laws or IRS regulations. Estimates provided by this calculator do not guarantee future distribution amounts or account balances. Past performance is not indicative of future results."}),(0,n.jsx)("p",{children:'SmartAsset.com does not provide legal, tax, accounting or financial advice (except for referring users to third-party advisers registered or chartered as fiduciaries ("Adviser(s)") with a regulatory body in the United States). Articles, opinions and tools are for general informational purposes only and are not intended to provide specific advice or recommendations for any individual. Users should consult their accountant, tax advisor or legal professional to address their particular situation.'})]})})]});var b=t(30235);let j=["birthYear","iraBalance","account401kBalance1","account401kBalance2","annualRateOfReturn"],N={defaultInputs:{birthYear:1960,iraBalance:1e5,account401kBalance1:1e5,account401kBalance2:1e5,annualRateOfReturn:5},constraints:h},C={iraRmdAmount:0,account401kRmd1:0,account401kRmd2:0},_=()=>{let{form:e,api:a,firstCalculationSubmitted:t,formatCurrency:l,calculateAndUpdateFirstCalculationSubmitted:o}=(0,b.qE)({formConfig:N,defaultResults:C}),[m,h]=(0,r.useState)(null),x=(0,s.usePathname)(),_=(0,r.useMemo)(()=>{let e=(0,n.jsx)(d.A,{id:"rmdDueDates",message:"Failing to take your RMDs by the due date could trigger IRS penalties."});if(!t||null===m)return(0,n.jsx)("h3",{className:c().resultTitle,children:"Qu
1ickly estimate your RMDs and when to take them"});let a=new Date().getFullYear(),r=a-m,s=m>=1960?75:73;return r>s?(0,n.jsxs)("h3",{className:c().resultTitle,children:["RMD(s) due by ",(0,n.jsxs)("span",{className:c().noWrap,children:["Dec. 31, ",a,e]})]}):(0,n.jsxs)("h3",{className:c().resultTitle,children:["First RMD(s) due by ",(0,n.jsxs)("span",{className:c().noWrap,children:["April 1, ",m+s+1,e]})]})},[t,m]),A=async a=>{if(a.preventDefault(),e.hasValidationErrors())return;let t=await o(()=>i(e.inputs));t&&(h(e.inputs.birthYear),(0,g.sx)(p.f.RMDCALCSUBMISSION,{"current-url":window.location.href,"input1-birth-year":e.inputs.birthYear,"input2-ira-balance":e.inputs.iraBalance,"input3-401k-balance-1":e.inputs.account401kBalance1,"input4-401k-balance-2":e.inputs.account401kBalance2,"input5-rate-of-return":e.inputs.annualRateOfReturn,"output1-rmd-value-1":t.iraRmdAmount,"output2-rmd-value-2":t.account401kRmd1,"output3-rmd-value-3":t.account401kRmd2}))};return(0,n.jsxs)("div",{className:c().calculatorParent,children:[(0,n.jsxs)("div",{className:c().calculatorContainer,children:[(0,n.jsx)("h2",{className:c().calculatorTitle,children:"Required Minimum Distribution (RMD) Calculator"}),(0,n.jsx)("p",{className:c().calculatorDescription,children:"Estimate your next RMD using your age, balance and expected returns."}),(0,n.jsxs)("div",{className:c().formLayout,children:[(0,n.jsxs)("form",{onSubmit:A,className:c().calculatorForm,children:[(0,n.jsx)("div",{className:c().formInputsContainer,children:j.map(a=>(0,n.jsx)(u.A,{...e.getInputGroupProps(a)},a))}),(0,n.jsx)("button",{type:"submit",className:c().calculateButton,disabled:a.isCalculating,children:a.isCalculating?(0,n.jsx)("i",{className:"fa fa-circle-notch fa-spin"}):"Calculate"}),a.errorResults&&(0,n.jsx)("p",{className:c().errorMessage,children:a.errorResults.message})]}),(0,n.jsxs)("div",{className:c().fullWidth,children:[(0,n.jsxs)("div",{className:c().resultsContainer,children:[(0,n.jsx)("div",{className:c().resultBox,children:(0,n.jsx)("label",{children:_})}),(!t||a.results.iraRmdAmount>0)&&(0,n.jsxs)("div",{className:c().resultBox,children:[(0,n.jsxs)("h4",{className:c().resultSubtitle,children:["RMD Amount for IRA(s)",(0,n.jsx)(d.A,{id:"iraRmd",message:"If you have more than one IRA, you can take your total RMD from just one account."})]}),(0,n.jsx)("div",{className:"".concat(c().resultValue," ").concat(c().secondary),children:l(a.results.iraRmdAmount)})]}),(!t||a.results.account401kRmd1>0)&&(0,n.jsxs)("div",{className:c().resultBox,children:[(0,n.jsxs)("h4",{className:c().resultSubtitle,children:["RMD Amount for 401(k) #1",(0,n.jsx)(d.A,{id:"401k1Rmd",message:"If you have more than one 401(k), you must take a separate RMD from each account."})]}),(0,n.jsx)("div",{className:"".concat(c().resultValue," ").concat(c().secondary),children:l(a.results.account401kRmd1)})]}),(!t||a.results.account401kRmd2>0)&&(0,n.jsxs)("div",{className:c().resultBox,children:[(0,n.jsxs)("h4",{className:c().resultSubtitle,children:["RMD Amount for 401(k) #2",(0,n.jsx)(d.A,{id:"401k2Rmd",message:"If you have more than one 401(k), you must take a separate RMD from each account."})]}),(0,n.jsx)("div",{className:"".concat(c().resultValue," ").concat(c().secondary),children:l(a.results.account401kRmd2)})]})]}),t&&(0,n.jsx)("button",{type:"button",className:c().ctaWhite,onClick:()=>{(0,g.sx)(p.f.RMDCTACLICK);let e=(0,v.f6)("/retirement/find-a-financial-planner",{utm_source:f.av,utm_campaign:f.Jr,...(0,v.xU)(x)},x);window.open(e,"_top")},children:"Find an Advisor"})]})]})]}),(0,n.jsx)(y,{})]})}},29919:e=>{e.exports={footnotesSection:"FootnotesComponent_footnotesSection__rz5nf",header:"FootnotesComponent_header___ueCB",disclaimer:"FootnotesComponent_disclaimer__SNolK",citations:"FootnotesComponent_citations__yVDip"}},30625:(e,a,t)=>{"use strict";t.d(a,{default:()=>s});var n=t(95155),r=t(12115);let s=e=>{let{children:a}=e,t=(e=>{let a={question:null,answer:null},t=r.Children.toArray(e),n=null;return t.forEach(e=>{r.isValidElement(e)&&("summary"===e.type&&(n=e.props.children),"p"===e.type&&n&&(a={question:n,answer:e.props.children},n=null))}),a})(a);
1return(0,n.jsxs)("details",{className:"wp-block-details is-layout-flow wp-block-details-is-layout-flow faq-schema",children:[(0,n.jsx)("summary",{children:t.question}),(0,n.jsx)("p",{children:t.answer})]})}},31329:e=>{e.exports={header:"IncomeProjection_header__fwRbN",headerIcon:"IncomeProjection_headerIcon__qTIVD",subtitle:"IncomeProjection_subtitle__cz3hQ",subtitleGroup:"IncomeProjection_subtitleGroup__zexka",subtitleValue:"IncomeProjection_subtitleValue__2PENm",seeMoreToggle:"IncomeProjection_seeMoreToggle__JUZwD",chartArea:"IncomeProjection_chartArea__LUZIK",sourcesTitle:"IncomeProjection_sourcesTitle__k7MMT"}},33129:e=>{e.exports={contentCard:"AmpBlock_contentCard__4TR7e",ampHeader:"AmpBlock_ampHeader__lffIv",ampLogo:"AmpBlock_ampLogo__o4G15",contentContainer:"AmpBlock_contentContainer__uHFc1",contentLeft:"AmpBlock_contentLeft__RVYQT",mainHeading:"AmpBlock_mainHeading__x3zxi",headingBlue:"AmpBlock_headingBlue___nBBu",description:"AmpBlock_description__9DjdF",ctaContainer:"AmpBlock_ctaContainer__7qrnd",ctaButton:"AmpBlock_ctaButton__uDUYG",secondaryCta:"AmpBlock_secondaryCta__0DNFs",mobileGradientImage:"AmpBlock_mobileGradientImage__MUyqZ",gradientImage:"AmpBlock_gradientImage__xyN__",contentRight:"AmpBlock_contentRight__a3OzG",desktopGradientImage:"AmpBlock_desktopGradientImage__M_WZW"}},33295:(e,a,t)=>{"use strict";t.d(a,{default:()=>i});var n=t(95155),r=t(12115),s=t(97320),l=t(8036);let i=e=>{let{children:a,trackingEventName:t}=e,i=(0,r.useRef)(null);return(0,s.A)(i,()=>(0,l.sx)(t),!0),(0,n.jsx)("h2",{ref:i,children:a})}},36676:(e,a,t)=>{"use strict";t.d(a,{default:()=>i});var n=t(95155),r=t(12115),s=t(29919),l=t.n(s);let i=e=>{let{isAdvertorial:a,children:t}=e;return(0,n.jsxs)("section",{className:l().footnotesSection,children:[(0,n.jsx)("h2",{className:l().header,id:"citations",children:"Article Sources"}),!a&&(0,n.jsxs)("p",{className:l().disclaimer,children:["All articles are reviewed and updated by SmartAsset’s fact-checkers for accuracy. Visit our"," ",(0,n.jsx)("a",{href:"/editorial-independence",target:"_blank",rel:"noopener noreferrer",children:"Editorial Policy"})," ","for more details on our overall journalistic standards."]}),(0,n.jsx)("ol",{className:l().citations,children:(e=>e?r.Children.map(e,e=>{if(!(0,r.isValidElement)(e))return e;if("li"===e.type){let a="",t=r.Children.map(e.props.children,e=>{if(!(0,r.isValidElement)(e))return e;if("a"===e.type&&"string"==typeof e.props.href)if(e.props.href.includes("#")&&"↩︎"===e.props.children)return a=e.props.href.replace("#",""),null;else{let a=e.props.href,{href:t,...n}=e.props;return(0,r.cloneElement)(e,{...n,onClick:e=>{e.stopPropagation(),window.open(a,"_blank")},children:e.props.children})}return e});return(0,r.cloneElement)(e,{...e.props,onClick:a?()=>{{let e=document.getElementById(a);e&&e.scrollIntoView({behavior:"smooth"})}}:void 0,style:a?{cursor:"pointer"}:e.props.style,children:t})}return e}):e)(t)}),(0,n.jsx)("a",{href:"#",children:"Back to top"})]})}},37162:(e,a,t)=>{"use strict";let n;t.d(a,{default:()=>P});var r=t(95155),s=t(12115),l=t(85203),i=t.n(l),o=t(56498);let c=async e=>{let a={...e};return a.annualPercentageYield=Number((a.annualPercentageYield/100).toFixed(6)),await (0,o.t0)("/calculators/savings",a)};var u=t(57740),d=t.n(u),m=t(9088),h=t(57902);let p={startingBalance:5e3,annualPercentageYield:2,compoundFrequency:365,additionalContributions:100,contributionFrequency:12,yearsToSave:10},g={startingBalance:{label:"Starting Balance",type:"currency",min:0,max:1e8,tooltipMessage:"Enter the current amount you already have saved.",step:1,error:"",formatMethod:Number.parseFloat},annualPercentageYield:{label:"Annual Percentage Yield (APY)",type:"percentage",min:0,max:1e3,error:"",step:"0.01",tooltipMessage:"APY shows your annual return. Choose how frequently that interest will compound.",formatMethod:Number.parseFloat},compoundFrequency:{label:"Compound Frequency",type:"select",tooltipMessage:"APY shows your annual return. Choose how frequently that interest will compound.",options:[{value:365,label:"Daily"},{value:12,label:"Monthly"},{value:4,label:"Quarterly"},{value:1,label:"Annually"}],error:"",formatMethod:Number.parseInt},additionalContributions:{label:"Additional Contribution",type:"currency",min:0,max:1e8,tooltipMessage:"Enter how much and how often you'll add to your savings.",step:1,error:"",formatMethod:Number.parseFloat},contributionFrequency:{label:"Contribution Frequency",type:"select",tooltipMessage:"Enter how much and how often you'll add to your savings.",options:[{value:24,label:"Semi-Monthly"},{value:12,label:"Monthly"},{value:1,label:"Annually"}],error:"",formatMethod:Number.parseInt},yearsToSave:{label:"Years to Save",type:"number",min:1,max:30,step:1,error:"",tooltipMessage:"Enter how many years you plan to keep saving before withdrawing your money.",formatMethod:Number.parseInt}};
1var v=t(78535),f=t(8036),x=t(6311),y=t.n(x),b=t(3540);let j=async()=>{try{let a=await (0,o.Jq)("/offers");if(!a||!a.success){var e;return console.error("Failed to fetch savings offers:",(null==a||null==(e=a.error)?void 0:e.message)||"Unknown error"),[]}let t=a.result;if(!t.data||!Array.isArray(t.data))return console.error("Invalid response from savings offers API:",t.message||"Unknown error"),[];return t.data.filter(e=>!0===e.calculatorEnabled)}catch(e){return console.error("Error fetching savings offers:",e),[]}};var N=t(26949),C=t.n(N);let _=e=>{let{id:a,label:t,checked:n,onChange:s,disabled:l=!1}=e;return(0,r.jsxs)("div",{className:C().toggleSwitch,children:[(0,r.jsx)("input",{type:"checkbox",id:a,className:C().toggleInput,checked:n,onChange:e=>{s(e.target.checked)},disabled:l}),(0,r.jsxs)("label",{htmlFor:a,className:C().toggleLabel,children:[(0,r.jsx)("span",{className:C().toggleText,children:t}),(0,r.jsx)("span",{className:C().toggleSlider})]})]})};var A=t(13975),T=t(37240),S=t(78824),I=t(16405);let w=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.A,{title:"About This Calculator",content:T.dt[S.c.SAVINGS].about}),(0,r.jsx)(A.A,{title:"Assumptions",children:(0,r.jsx)(r.Fragment,{children:(0,I.Ay)(T.dt[S.c.SAVINGS].assumptions)})}),(0,r.jsx)(A.A,{children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:"This example is hypothetical and for illustrative purposes only. Past performance is not a guarantee of future results. Articles, opinions, and tools are for general information only and are not intended to provide specific advice or recommendations for any individual. We suggest that you consult your accountant, tax, or legal advisor concerning your individual situation."}),(0,r.jsxs)("p",{children:[(0,r.jsx)("a",{href:"https://smartasset.com",children:"SmartAsset.com"}),' is not intended to provide legal advice, tax advice, accounting advice or financial advice (Other than referring users to third party advisers registered or chartered as fiduciaries ("Adviser(s)") with a regulatory body in the United States). Articles, opinions, and tools are for general information only and are not intended to provide specific advice or recommendations for any individual.        ']})]})})]});var R=t(30235),E=t(32548),k=t(90668),M=t.n(k);let L=e=>{let a,{offer:t,partnerOfferCopy:n}=e;return(0,r.jsxs)("div",{className:M().partnerOfferAd,children:[n&&(0,r.jsx)("div",{className:M().offerCopy,children:n}),(0,r.jsxs)("div",{className:M().header,children:[(0,r.jsxs)("div",{className:M().logoContainer,children:[t.logo&&(0,r.jsx)("img",{src:t.logo,alt:t.organization,className:M().logo}),(0,r.jsx)("div",{className:M().fdic,children:"Member FDIC"})]}),(0,r.jsx)("div",{className:M().sponsoredLabel,children:"SPONSORED"})]}),(0,r.jsxs)("div",{className:M().offerDetails,children:[(0,r.jsxs)("div",{className:M().offerItem,children:[(0,r.jsxs)("div",{className:M().offerLabel,children:["APY ",(0,r.jsxs)("span",{className:M().offerLabelDate,children:["as of ",t.calculatorAsOfDate?t.calculatorAsOfDate:new Date().toLocaleDateString()]})]}),(0,r.jsxs)("div",{className:M().offerValue,children:[t.apy.toFixed(2),"%"]})]}),(0,r.jsxs)("div",{className:M().offerItem,children:[(0,r.jsx)("div",{className:M().offerLabel,children:"Min. Balance"}),(0,r.jsx)("div",{className:M().offerValue,children:(a=t.minbalance,new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(a))})]}),(0,r.jsxs)("div",{className:M().offerItem,children:[(0,r.jsx)("div",{className:M().offerLabel,children:"Interest Rate"}),(0,r.jsxs)("div",{className:M().offerValue,children:[t.rate.toFixed(2),"%"]})]}),(0,r.jsx)("div",{className:M().offerItem,children:(0,r.jsx)("a",{href:t.click,target:"_blank",rel:"noopener noreferrer",className:M().viewOfferButton,onClick:()=>{(0,f.sx)(v.f.OFFERCLICK,{organization:t.organization,apy:t.apy,minBalance:t.minbalance,rate:t.rate})},children:"View Offer"})})]})]})};var B=t(68968);let F=new Date().getFullYear(),O={defaultInputs:p,constraints:g},D={finalBalance:0,totalContributions:0,totalInterestEarned:0,yearlyBreakdown:[]},P=e=>{var a,t,l,o,u,g,x;let{article:N}=e,C="You can save an extra $VALUE with a higher APY",A=(0,s.useRef)(!1),[T,I]=(0,s.use
1State)(p.yearsToSave),[k,M]=(0,s.useState)(!1),[P,G]=(0,s.useState)(!1),[V,Y]=(0,s.useState)(null),[U,H]=(0,s.useState)(!1),[W,q]=(0,s.useState)(null),[K,z]=(0,s.useState)(null),{form:$,api:J,formatCurrency:X}=(0,R.qE)({formConfig:O,defaultResults:D}),{registerSubmit:Z,element:Q,surfaceRef:ee}=(0,B.R)(S.c.SAVINGS),ea=(0,s.useCallback)(async()=>{if(V)return V;H(!0),q(null);try{let e=await j();return Y(e),e}catch(e){return q("Failed to load offers"),console.error(e),[]}finally{H(!1)}},[V]),et=(0,s.useCallback)(e=>e.length?e.reduce((e,a)=>a.apy>e.apy?a:e):null,[]),en=(0,s.useCallback)((e,a,t,r,s)=>{var l,i;if(null==a||null==(l=a.yearlyBreakdown)?void 0:l.length)if(null!==t&&(null==(i=t.yearlyBreakdown)?void 0:i.length)>0){let e=[{type:"column",name:"Total Balance (".concat(r,"% APY)"),data:a.yearlyBreakdown.map(e=>Math.round(e.endBalance)),color:"#77C345",stack:"user"},{type:"column",name:"Total Balance (".concat(s,"% APY)"),data:t.yearlyBreakdown.map(e=>Math.round(e.endBalance)),color:"#20A7E2",stack:"offer"}];n&&n.destroy(),n=y().chart("barContainer",(0,b.Y4)(e))}else{let t=a.yearlyBreakdown.map(()=>Math.round(e)),r=a.yearlyBreakdown.map(e=>Math.round(e.contributionsToDate)),s=a.yearlyBreakdown.map(e=>Math.round(e.interestEarnedToDate)),l=a.yearlyBreakdown.map(e=>Math.round(e.endBalance)),i=[{type:"column",name:"Starting Balance",data:t,color:b.OK.ORANGE},{type:"column",name:"Total Contributions",data:r,color:b.OK.BLUE},{type:"column",name:"Total Interest Earned",data:s,color:b.OK.GREEN},{type:"column",name:"End Balances",data:l,visible:!1}];n&&n.destroy(),n=y().chart("barContainer",(0,b.g2)(i))}},[]),er=(0,s.useCallback)((e,a,t,n,r)=>{a&&en(e,a,t,n,r)},[en]),es=(0,s.useCallback)(async function(e){let a=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2?arguments[2]:void 0,n=await J.calculate(()=>c(e)),r=null,s=null;if(void 0!==t?t:P){let a=await ea();if(a&&a.length>0){let t=et(a);if(t){s=t;let a={...e,annualPercentageYield:t.apy};r=await J.calculate(()=>c(a))}}}return n&&(z({userResults:n,offerResults:r,bestOffer:s}),I(e.yearsToSave),M(!0),a&&(Z(),(0,f.sx)(v.f.SAVINGSCALCSUBMISSION,{"input1-starting-amount":e.startingBalance,"input2-additional-contributions":e.additionalContributions,"input3-contribution-frequency":e.contributionFrequency,"input4-apy":e.annualPercentageYield,"input5-apy-frequency":e.compoundFrequency,"input6-years-to-grow":e.yearsToSave,"output1-final-value":n.finalBalance})),er(e.startingBalance,n,r,e.annualPercentageYield,null==s?void 0:s.apy)),n},[J,er,I,P,ea,et,Z]);(0,s.useEffect)(()=>{A.current||(A.current=!0,es(p,!1))},[es]),(0,s.useEffect)(()=>{k&&es($.inputs,!1)},[P]);let el=async e=>{e.preventDefault(),$.getFirstErrorField()||(G(!1),await es($.inputs,!0,!1))},ei=$.inputs.additionalContributions*$.inputs.contributionFrequency;return(0,r.jsxs)("div",{className:i()(d().calculatorParent,d().fullWidthCalculator,d().standaloneCalculator),children:[(0,r.jsx)("div",{ref:ee,className:d().calculatorContainer,children:(0,r.jsxs)("div",{className:d().formLayout,children:[(0,r.jsxs)("form",{onSubmit:el,className:d().calculatorForm,children:[(0,r.jsxs)("div",{className:d().formInputsContainer,children:[(0,r.jsx)(m.A,{...$.getInputGroupProps("startingBalance")}),(0,r.jsx)(m.A,{...$.getInputGroupProps("annualPercentageYield")}),(0,r.jsx)(m.A,{...$.getInputGroupProps("compoundFrequency")}),(0,r.jsx)(m.A,{...$.getInputGroupProps("additionalContributions")}),(0,r.jsxs)("div",{className:d().helperText,children:["Annual Contribution of ",X(ei)]}),(0,r.jsx)(m.A,{...$.getInputGroupProps("contributionFrequency")}),(0,r.jsx)(m.A,{...$.getInputGroupProps("yearsToSave")})]}),(0,r.jsx)("button",{type:"submit",className:d().calculateButton,disabled:J.isCalculating,children:J.isCalculating?(0,r.jsx)("i",{className:"fa fa-circle-notch fa-spin"}):"Calculate"}),(0,r.jsxs)("div",{className:d().toggleContainer,children:[(0,r.jsx)(_,{id:"compareOffers",label:"Compare Savings Rates",checked:P,onChange:e=>{(0,f.sx)(v.f.OFFERTOGGLE,{"toggle-type":e?"on":"off"}),G(e)},disabled:U||J.isCalculating}),U&&(0,r.jsx)("span",{className:d().loadingText,children:"Loading offers..."}),W&&(0,r.jsx)("span",{className:d().errorText,children:W})]}),J.errorResults&&(0,r.jsx)("p",{className:d().errorMessage,children:J.errorResults.message})]}),(0,r.jsxs)("div",{className:d().resultsContainer,children:[(0,r.jsxs)("div",{className:d().resultBox,children:[(0,r.jsx)("label",{children:(0,r.jsxs)("h3",{className:d().resultTitle,children:["Your savings balance at the end of ",F+T," will be:",(0,r.jsx)("span",{className:d().hideMobileTooltip,children:(0,r.jsx)(h.A,{id:"savingsTotal",message:"Your projected savings balance, including contributions and interest."})})]})}),(null==K?void 0:K.offerResults)?(0,r.jsxs)("div",{className:d().comparisonResults,children:[(0,r.jsxs)("div",{className:d().comparisonResultItem,children:[(0,r.jsx)("div",{className:"".concat(d().resultValue," ").concat(d().primary),style:{color:"#77C345"},children:X((null==(a=K.userResults)?void 0:a.finalBalance)||0)}
1),(0,r.jsxs)("div",{className:d().apyBadge,style:{backgroundColor:"rgba(213, 246, 214, 0.5)",color:"#60A234"},children:[$.inputs.annualPercentageYield,"% APY"]})]}),(0,r.jsxs)("div",{className:d().comparisonResultItem,children:[(0,r.jsx)("div",{className:"".concat(d().resultValue," ").concat(d().primary),style:{color:"#20A7E2"},children:X(K.offerResults.finalBalance||0)}),(0,r.jsxs)("div",{className:d().apyBadge,style:{backgroundColor:"rgba(241, 250, 255, 1)",color:"#1C9DD4"},children:[null==(t=K.bestOffer)?void 0:t.apy,"% APY"]})]})]}):(0,r.jsx)("div",{className:"".concat(d().resultValue," ").concat(d().primary),children:X((null==(l=J.results)?void 0:l.finalBalance)||0)})]}),(0,r.jsxs)("div",{className:d().chartsWrapper,children:[(0,r.jsx)("div",{className:d().chartsContainer,children:(0,r.jsxs)("div",{className:"".concat(d().chartContainer," ").concat(d().singleChart),children:[(0,r.jsxs)("span",{className:d().chartTitle,children:["Savings Growth Over Time",(0,r.jsx)(h.A,{id:"barChartTooltip",message:"How your savings balance may grow each year."})]}),(0,r.jsx)("div",{id:"barContainer",className:d().barContainer})]})}),(0,r.jsx)("div",{className:d().chartLegend,children:(null==K?void 0:K.offerResults)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:d().legendItem,children:[(0,r.jsxs)("div",{className:d().legendLabel,children:[(0,r.jsx)("div",{className:d().legendColor,style:{backgroundColor:"#77C345"}}),(0,r.jsxs)("span",{children:["Total Interest Earned (",$.inputs.annualPercentageYield,"% APY)"]})]}),(0,r.jsx)("span",{className:d().legendAmount,children:X((null==(o=K.userResults)?void 0:o.finalBalance)||0)})]}),(0,r.jsxs)("div",{className:d().legendItem,children:[(0,r.jsxs)("div",{className:d().legendLabel,children:[(0,r.jsx)("div",{className:d().legendColor,style:{backgroundColor:"#20A7E2"}}),(0,r.jsxs)("span",{children:["Total Interest Earned (",null==(u=K.bestOffer)?void 0:u.apy,"% APY)"]})]}),(0,r.jsx)("span",{className:d().legendAmount,children:X(K.offerResults.finalBalance||0)})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:d().legendItem,children:[(0,r.jsxs)("div",{className:d().legendLabel,children:[(0,r.jsx)("div",{className:d().legendColor,style:{backgroundColor:b.OK.ORANGE}}),(0,r.jsx)("span",{children:"Starting Balance"})]}),(0,r.jsx)("span",{className:d().legendAmount,children:X($.inputs.startingBalance)})]}),(0,r.jsxs)("div",{className:d().legendItem,children:[(0,r.jsxs)("div",{className:d().legendLabel,children:[(0,r.jsx)("div",{className:d().legendColor,style:{backgroundColor:b.OK.BLUE}}),(0,r.jsx)("span",{children:"Total Contributions"})]}),(0,r.jsx)("span",{className:d().legendAmount,children:X((null==(g=J.results)?void 0:g.totalContributions)||0)})]}),(0,r.jsxs)("div",{className:d().legendItem,children:[(0,r.jsxs)("div",{className:d().legendLabel,children:[(0,r.jsx)("div",{className:d().legendColor,style:{backgroundColor:b.OK.GREEN}}),(0,r.jsx)("span",{children:"Total Interest Earned"})]}),(0,r.jsx)("span",{className:d().legendAmount,children:X((null==(x=J.results)?void 0:x.totalInterestEarned)||0)})]})]})})]}),(0,r.jsx)("div",{className:d().adContainer,children:(null==K?void 0:K.bestOffer)?(0,r.jsx)(L,{offer:K.bestOffer,partnerOfferCopy:(()=>{if(!C||!(null==K?void 0:K.offerResults)||!(null==K?void 0:K.userResults))return C||"";let e=Math.round(K.offerResults.finalBalance)-Math.round(K.userResults.finalBalance);if(e<=0)return"";let a=X(e),t=C.split("$VALUE");return 1===t.length?C:(0,r.jsxs)(r.Fragment,{children:[t[0],(0,r.jsx)("span",{className:d().highlightedValue,children:a}),t[1]]})})()}):(0,r.jsx)(E.default,{positionId:"sponsorcalcpb",adUnitSize:["fluid"],article:N,heightClass:"calculator--pageBreakOne"})}),Q]})]})}),(0,r.jsx)(w,{})]})}},40477:e=>{e.exports={overlay:"OnboardingModal_overlay__IWQV3",overlayOpen:"OnboardingModal_overlayOpen__G5Ajw",dialog:"OnboardingModal_dialog__SHpT2",close:"OnboardingModal_close__E3Mgf"}},41464:(e,a,t)=>{"use strict";t.d(a,{$:()=>r});let n=[];Object.freeze(n);let r=Object.freeze({finalValue:0,totalContributions:0,totalInterestEarned:0,yearlyBreakdown:n})},42302:(e,a,t)=>{"use strict";t.d(a,{N:()=>n,c:()=>r});let n={projectedValueTitle:"This investment may be worth:",projectedValueTooltip:"The total amount your investment could potentially grow to based on your inputs.",incrementalLeadIn:"With the guidance of a financial advisor, you could potentially see an additional",incrementalYearsSuffix:"years.",incrementalTooltip:"This figure reflects the projected difference from an assumed higher return and potential tax savings, net of estimated advisor fees. It is a hypothetical estimate, not a prediction of actual results.",growthChartTitle:"Investment Growth Over Time",growthChartTooltip:"Annualized growth trends over your chosen time frame, with and without the guidance of a financial advisor.",withAdvisorSeriesName:"Investment Growth With an Advisor",withoutAdvisorSeriesName:"Investment Growth Without an Advisor",yearsToGrowTooltip:"How long you plan to keep your investments (5 years or more). The calculator illustrates hypothetical outcomes over peri
1ods of five years or longer."},r=5},45031:(e,a,t)=>{"use strict";t.d(a,{default:()=>I});var n=t(95155),r=t(12115),s=t(85203),l=t.n(s),i=t(57740),o=t.n(i),c=t(94463),u=t.n(c),d=t(89762),m=t.n(d),h=t(22238),p=t(89623),g=t(30235),v=t(8036),f=t(78535),x=t(73866);let y={utm_source:x.av,utm_campaign:x.OJ},b=()=>{let e=(0,g.be)(y);return(0,n.jsx)("a",{href:e,className:o().ctaWhite,target:"_top",onClick:()=>{(0,v.sx)(f.f.SOCIALSECURITYCTACLICK,{"current-url":window.location.href})},children:"Find an Advisor"})};var j=t(77818),N=t(37240),C=t(78824),_=t(4589),A=t(17005),T=t(4908);let S="social-security-calculator-embedded-title",I=e=>{var a;let{isExternal:t=!1}=e,s=(0,g.Ar)(),{form:i,api:c,formatCurrency:d}=(0,g.qE)({formConfig:T.E1,defaultResults:T.Z$}),[x,y]=(0,r.useState)(!1),[I,w]=(0,r.useState)(A._4.ssElectionAge),R=async()=>{let e=await c.calculate(()=>(0,_.c)((0,T.sJ)(i.inputs,s)));if(!e)return void y(!1);y(!0),w(i.inputs.ssElectionAge),(0,v.sx)(f.f.SOCIALSECURITYCALCSUBMIT,{...(0,T.M$)(i.inputs,e),"output3-monthly-benefit":(0,T.GO)((0,T.nZ)(e))})},E=x?d((0,T.nZ)(c.results)):A.Ol,k=x?d((0,T.GO)((0,T.nZ)(c.results))):A.Ol;return(0,n.jsxs)("div",{className:l()(o().calculatorParent,o().standaloneCalculator,t&&u().externalContainer),children:[(0,n.jsxs)("section",{className:o().calculatorContainer,"aria-labelledby":S,children:[t&&(0,n.jsx)("div",{className:u().branding,children:(0,n.jsx)("img",{src:"/cds-images/shared/smartasset.svg",alt:"SmartAsset"})}),(0,n.jsx)("h2",{id:S,className:o().calculatorTitle,children:(0,N.Ws)(C.c.SOCIAL_SECURITY)}),(0,n.jsx)("p",{className:o().calculatorDescription,children:"Calculate your estimated annual Social Security benefits based on your birth year, current annual income and desired benefit election age."}),(0,n.jsxs)("div",{className:o().formLayout,children:[(0,n.jsx)(h.A,{form:i,onCalculate:R,isCalculating:c.isCalculating}),(0,n.jsxs)("div",{className:m().embeddedResultsColumn,children:[(0,n.jsxs)("section",{className:o().resultsContainer,"aria-label":"Calculator results",children:[(0,n.jsx)(p.A,{heading:(0,A.sc)(I),tooltipId:"social-security-embedded-annual-benefit",value:E}),(0,n.jsx)("hr",{className:m().resultDivider}),(0,n.jsx)(p.A,{heading:(0,A.bn)(I),tooltipId:"social-security-embedded-monthly-benefit",value:k,emphasis:"secondary"}),(null==(a=c.errorResults)?void 0:a.message)&&(0,n.jsx)("p",{className:o().errorMessage,role:"alert",children:c.errorResults.message})]}),x&&(0,n.jsx)(b,{})]})]})]}),(0,n.jsx)(j.A,{})]})}},47533:e=>{e.exports={carouselWrapper:"RetirementTipCarousel_carouselWrapper__UxqMk",carouselRow:"RetirementTipCarousel_carouselRow__Ht1Id",arrowButton:"RetirementTipCarousel_arrowButton__ABr3g",arrowIcon:"RetirementTipCarousel_arrowIcon__XRRt4",embla:"RetirementTipCarousel_embla__QlltL",emblaContainer:"RetirementTipCarousel_emblaContainer__vcvBC",emblaSlide:"RetirementTipCarousel_emblaSlide__d7Tbr",tipCard:"RetirementTipCarousel_tipCard__rBh5K",tipHeader:"RetirementTipCarousel_tipHeader__wBGAF",tipIcon:"RetirementTipCarousel_tipIcon__Dj39x",tipHeading:"RetirementTipCarousel_tipHeading__V2Cyw",tipBody:"RetirementTipCarousel_tipBody__v26ad",tipCtaButton:"RetirementTipCarousel_tipCtaButton__2uy4o",dots:"RetirementTipCarousel_dots__wyBF_",dot:"RetirementTipCarousel_dot__Xb_Fe",dotActive:"RetirementTipCarousel_dotActive__4_KME"}},47669:(e,a,t)=>{"use strict";t.d(a,{H:()=>r});var n=t(95406);let r=async e=>{let a=e.startingAmount>=1e6?.75:1,t={...e,rateOfReturn:Math.min(Number((e.rateOfReturn+2.47).toFixed(2)),1e3),advisorFee:a},[r,s]=await Promise.all([(0,n.i)(e),(0,n.i)(t)]);if(!r.success)return{success:!1,error:r.error};if(!s.success)return{success:!1,error:s.error};let l=s.result.finalValue;return{success:!0,result:{valueWithoutAdvisor:r.result.finalValue,valueWithAdvisor:l,incrementalWithAdvisor:l-r.result.finalValue,withoutAdvisor:r.result,withAdvisor:s.result}}}},48798:(e,a,t)=>{"use strict";t.d(a,{L:()=>i});var n=t(35068),r=t(56498);let s=async e=>await (0,r.t0)("/locations",{query:e});var l=t(28538);let i=e=>{var a;let t=!!e,r=t&&null!=(a=l.Ru.find(a=>a.stateName===e))?a:l.Xi;return{location:r,locationFieldConfig:(e=>({type:"combobox",label:"Location",tooltipMessage:"City where you currently live.",placeholder:"City, State (e.g. ".concat(e.city,", ").concat(e.stateAbbreviation,")"),fetchSuggestions:async e=>{let a=await s(e);return a.success?a.result:[]},getDisplayLabel:e=>"".concat(e.city,", ").concat(e.stateAbbreviation),getInputValue:e=>e?"".concat(e.city,", ").concat(e.stateAbbreviation):"",validate:e=>e?void 0:"Please enter a valid city name.",filterLocallyBelowCount:10}))(r),locationValidationSchema:((e,a)=>n.Ik({city:n.Yj().required(),county:n.Yj().required(),stateAbbreviation:n.Yj().required(),stateName:n.Yj().required()}).nullable().required("Please enter a valid city name.").test("state-match","",(t,n)=>!t||!e||t.stateAbbreviation===a.stateAbbreviation||n.createError({message:"".concat(t.city,", ").concat(t.stateAbbreviation," is not in ").concat(a.stateName)})))(t,r)}}},51282:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var n=t(95155);t(12115);var r=t(33129),s=t.n(r);let l=e=>{let{primary:a,secondary:t}=e;
1return(0,n.jsxs)("div",{className:s().contentCard,children:[(0,n.jsx)("div",{className:s().ampHeader,children:(0,n.jsx)("img",{src:"/cds-images/shared/smrtsst_amp.png",alt:"SmartAsset AMP - Advisor Marketing Platform",className:s().ampLogo})}),(0,n.jsxs)("div",{className:s().contentContainer,children:[(0,n.jsxs)("div",{className:s().contentLeft,children:[(0,n.jsxs)("h2",{className:s().mainHeading,children:["Financial Advisors, Get Matched With ",(0,n.jsx)("span",{className:s().headingBlue,children:"Investors"})]}),(0,n.jsx)("p",{className:s().description,children:"Over 50,000 investors come to SmartAsset every month looking for fiduciary advisors. With AMP, you can be the advisor they meet next."}),(0,n.jsx)("div",{className:s().mobileGradientImage,children:(0,n.jsx)("img",{src:"/cds-images/homepage/amp-gradient.png",alt:"SmartAsset AMP features including Lead Generation, Automated Nurtures, Seamless CRM Integration, and Strategic Support",className:s().gradientImage})}),(0,n.jsxs)("div",{className:s().ctaContainer,children:[(0,n.jsx)("a",{href:a.href,className:s().ctaButton,"aria-label":"Get started on AMP",onClick:a.onClick,children:"Get Started on AMP"}),(0,n.jsx)("a",{href:t.href,className:s().secondaryCta,"aria-label":"Learn more about AMP",onClick:t.onClick,children:"Learn More"})]})]}),(0,n.jsx)("div",{className:s().contentRight,children:(0,n.jsx)("div",{className:s().desktopGradientImage,children:(0,n.jsx)("img",{src:"/cds-images/homepage/amp-gradient.png",alt:"SmartAsset AMP features including Lead Generation, Automated Nurtures, Seamless CRM Integration, and Strategic Support",className:s().gradientImage})})})]})]})}},53979:(e,a,t)=>{"use strict";t.d(a,{B:()=>r,q:()=>s});var n=t(12115);let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1025,[a,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let a=()=>{t(window.innerWidth<e)};return a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[e]),a},s=e=>{let[a,t]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(e){let a=()=>{t(e.selectedScrollSnap())};return e.on("select",a),a(),()=>{e.off("select",a)}}},[e]),a}},54526:e=>{e.exports={block:"FutureValueCalculatorCta_block__X8zrV",icon:"FutureValueCalculatorCta_icon__Zrs1y",button:"FutureValueCalculatorCta_button__ERkit",heading:"FutureValueCalculatorCta_heading__6Owvp",header:"FutureValueCalculatorCta_header__c_SiU",subheader:"FutureValueCalculatorCta_subheader__7AS9i"}},56290:(e,a,t)=>{"use strict";t.d(a,{default:()=>m});var n=t(95155);t(12115);var r=t(52619),s=t.n(r),l=t(15279),i=t(64321),o=t.n(i),c=t(5570),u=t(85203),d=t.n(u);let m=e=>{let{article:a,className:t}=e,r=(0,l.Ub)("(min-width: 1024px)",{defaultValue:!1,initializeWithValue:!1}),i=[{name:a.isCalculatorPage?"SmartAsset":"SmartReads",href:a.isCalculatorPage?"/":"/blog"},...(0,c.gv)(a)];return(0,n.jsx)("nav",{"aria-label":"Breadcrumb",className:d()(o().breadcrumbs,t),children:r?(0,n.jsx)(n.Fragment,{children:i.map((e,a)=>{let t=a===i.length-1;return t?(0,n.jsx)("span",{children:e.name},a):(0,n.jsxs)("span",{children:[(0,n.jsx)(s(),{href:e.href,"aria-current":t,children:e.name},a),(0,n.jsx)("span",{className:o().divider,children:"/"})]},a)})}):(0,n.jsx)(n.Fragment,{children:(0,c.No)(a)?(0,n.jsxs)(s(),{href:"/".concat((0,c.I$)(a.category),"/s/").concat(a.category.slug),children:["< ",a.category.name]}):(0,n.jsxs)(s(),{href:"/".concat((0,c.I$)(a.category)),children:["< ",(0,c.Mx)(a.category)]})})})}},56599:(e,a,t)=>{"use strict";let n;t.r(a),t.d(a,{default:()=>Q});var r=t(95155),s=t(12115),l=t(20063),i=t(35068),o=t(85203),c=t.n(o),u=t(6311),d=t.n(u),m=t(41521),h=t(14999),p=t(80909),g=t(91141),v=t(56498);let f=()=>new Date().getFullYear()-1;var x=t(39106),y=t(97320),b=t(15944),j=t(38561),N=t(91028),C=t(97687),_=t(24294);let A=async(e,a)=>{let{location:t,...n}=e;return(0,v.t0)("/calculators/income-tax",{...n,year:a,city:t.city,county:t.county,state:t.stateAbbreviation})};var T=t(57740),S=t.n(T),I=t(22026),w=t.n(I),R=t(57902),E=t(32548),k=t(13975),M=t(37240),L=t(78824),B=t(16405);let F=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k.A,{title:"About This Calculator",children:(0,r.jsx)(r.Fragment,{children:(0,B.Ay)(M.dt[L.c.INCOME_TAX].about)})}),(0,r.jsx)(k.A,{title:"Assumptions",children:(0,r.jsx)(r.Fragment,{children:(0,B.Ay)(M.dt[L.c.INCOME_TAX].assumptions)})}),(0,r.jsx)(k.A,{children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:"Actual results may vary based on individual circumstances and changes in tax laws or IRS regulations. Estimates provided by this calculator do not guarantee income tax amounts or rates. Past performance is not indicative of future results."}),(0,r.jsx)("p",{children:'SmartAsset.com does not provide legal, tax, accounting or financial advice (except for referring users to third-party advisers registered or chartered as fi
1duciaries ("Adviser(s)") with a regulatory body in the United States). Articles, opinions and tools are for general informational purposes only and are not intended to provide specific advice or recommendations for any individual. Users should consult their accountant, tax advisor or legal professional to address their particular situation.'})]})})]}),O={grossHouseholdIncome:5e4,filingStatusType:"SINGLE",deductionMethodType:"STANDARD",itemizedDeduction:0,contributionTo401k:0,contributionToTraditionalIra:0,federalTaxCredits:0,federalOtherPreTaxDeductions:0,stateDependentDeductions:0},D={grossHouseholdIncome:{label:"Household Income",tooltipMessage:"This is your gross annual earnings from your W2 job, business or other sources.",step:1},filingStatusType:{label:"Filing Status",tooltipMessage:"Based on your marital and household situation, this choice affects your tax brackets, deductions, and credits.",options:[{value:"SINGLE",label:"Single"},{value:"MARRIED_FILING_JOINTLY",label:"Married, Filing Jointly"},{value:"HEAD_OF_HOUSEHOLD",label:"Head of Household"},{value:"MARRIED_FILING_SEPARATELY",label:"Married Filing Separately"}]},deductionMethodType:{label:"Deduction Type",tooltipMessage:"Select whichever option gives you the greater deduction.",options:[{value:"STANDARD",label:"Standard Deduction"},{value:"ITEMIZED",label:"Itemized Deduction"}]},itemizedDeduction:{label:"Deduction Amount",tooltipMessage:"If you itemize at the federal level, you may need to itemize at the state level too. This can vary by state, though. When itemizing, we use our state and local tax calculations to determine your SALT deduction.",step:1},contributionTo401k:{label:"401(k) Contribution",tooltipMessage:"Your annual contribution to your 401(k) or a similar workplace retirement account.",step:1},contributionToTraditionalIra:{label:"Traditional IRA Contribution",tooltipMessage:"Your annual contribution to your Traditional IRA.",step:1},federalTaxCredits:{label:"Tax Credits",tooltipMessage:"Enter any non-refundable federal credits that lower your taxes by the amount of the credit.",step:1},federalOtherPreTaxDeductions:{label:"Other Pre-Tax Deductions",tooltipMessage:"Add eligible federal deductions or contributions not previously accounted for, such as HSA contributions or student loan interest.",step:1},stateDependentDeductions:{label:"Dependent Deductions",tooltipMessage:"Enter the number of dependents you can claim. This may reduce your state taxable income."}};var P=t(3540),G=t(78535),V=t(8036),Y=t(14538),U=t(73866),H=t(55645),W=t(69934),q=t(85415),K=t(79225),z=t(48798),$=t(28538),J=t(68968);let X=b.I.map(e=>{let{value:a,label:t}=e;return{value:a,label:t}}),Z={federalLiability:{amount:0,marginalRate:0,effectiveRate:0},ficaLiability:{amount:0,marginalRate:0,effectiveRate:0},stateLiability:{amount:0,marginalRate:0,effectiveRate:0},localLiability:{amount:0,marginalRate:0,effectiveRate:0},totalLiability:{amount:0,marginalRate:0,effectiveRate:0},totalRetirementContributions:0,totalTakeHomePay:0},Q=e=>{var a,t,o,u,b,T,I,k,M,B,Q,ee,ea,et,en,er,es,el,ei,eo,ec,eu,ed,em,eh,ep,eg,ev,ef,ex,ey,eb,ej,eN,eC,e_,eA,eT,eS,eI,ew,eR,eE,ek,eM,eL,eB,eF,eO,eD,eP,eG;let{isStandalone:eV=!0,article:eY}
1=e,[eU,eH]=(0,s.useState)(!1),[eW,eq]=(0,s.useState)(null),[eK,ez]=(0,s.useState)("marginal"),[e$,eJ]=(0,s.useState)(null),[eX,eZ]=(0,s.useState)(null),[eQ,e0]=(0,s.useState)(!1),e1=(0,l.usePathname)(),e5=eY?(0,$.KU)(eY.slug):void 0,e2=!!e5,{location:e3,locationFieldConfig:e4,locationValidationSchema:e6}=(0,s.useMemo)(()=>(0,z.L)(e5),[e5]),e8=(0,p.y)(Z),e9=(()=>{let[e,a]=(0,s.useState)(f);return(0,s.useEffect)(()=>{(0,v.Jq)("/calculators/income-tax/config").then(e=>{var t;(null==e?void 0:e.success)&&"number"==typeof(null==(t=e.result)?void 0:t.year)&&a(e.result.year)})},[]),e})(),e7=(0,J.R)(eY&&e2?"/taxes/".concat(eY.slug):L.c.INCOME_TAX);(0,s.useEffect)(()=>{(0,v.t0)("/calculators/income-tax/validations",{year:e9}).then(e=>{(null==e?void 0:e.success)&&e.result?eJ(e.result):eZ("Unable to load calculator. Please try again.")})},[e9]);let ae=(0,s.useMemo)(()=>e$?((e,a)=>i.Ik({grossHouseholdIncome:i.ai().required("Please enter a value").min(0,"Value must be at least $0").max(1e8,"Value must be less than or equal to $100,000,000"),filingStatusType:i.Yj().required().oneOf(["SINGLE","MARRIED_FILING_JOINTLY","HEAD_OF_HOUSEHOLD","MARRIED_FILING_SEPARATELY"]),deductionMethodType:i.Yj().required().oneOf(["STANDARD","ITEMIZED"]),itemizedDeduction:i.ai().when("deductionMethodType",{is:"ITEMIZED",then:e=>e.min(0,"Value must be at least $0").max(1e7,"Value must be less than or equal to $10,000,000"),otherwise:e=>e.notRequired()}),contributionTo401k:i.ai().min(0,"Value must be at least $0").when("filingStatusType",(e,t)=>{var n,r,s;let[l]=e,i=null!=(s=null==(r=a.retirementContributionLimits[l])||null==(n=r.AT_401K)?void 0:n.superCatchUpAmount)?s:1e5;return t.max(i,"Value must be less than or equal to $".concat(i.toLocaleString()))}),contributionToTraditionalIra:i.ai().min(0,"Value must be at least $0").when("filingStatusType",(e,t)=>{var n,r,s;let[l]=e,i=null!=(s=null==(r=a.retirementContributionLimits[l])||null==(n=r.AT_TRADITIONAL_IRA)?void 0:n.catchUpAmount)?s:1e5;return t.max(i,"Value must be less than or equal to $".concat(i.toLocaleString()))}),federalTaxCredits:i.ai().min(0,"Value must be at least $0").max(a.maxFederalTaxCredits,"Value must be less than or equal to $".concat(a.maxFederalTaxCredits.toLocaleString())),federalOtherPreTaxDeductions:i.ai().min(0,"Value must be at least $0").max(a.maxFederalOtherPreTaxDeductions,"Value must be less than or equal to $".concat(a.maxFederalOtherPreTaxDeductions.toLocaleString())),stateDependentDeductions:i.ai().integer("Please enter a whole number").min(0,"Value must be at least 0").max(a.maxStateDependentDeductions,"Value must be less than or equal to ".concat(a.maxStateDependentDeductions)),location:e}))(e6,e$):i.Ik(),[e6,e$]),aa=(0,s.useMemo)(()=>({...O,location:e3}),[e3]),at=(0,g.I)({initialValues:aa,validationSchema:ae,calculate:e=>e8.calculate(()=>A(e,e9)),onSuccess:(e,a)=>{eH(!0),eq(a.grossHouseholdIncome),eV&&(e=>{let a=[{type:"pie",name:"Amount",data:[{y:e.totalLiability.amount,color:P.OK.ORANGE,name:"Total Income Taxes"},{y:e.totalRetirementContributions,color:P.OK.BLUE,name:"Retirement Contributions"},{y:e.totalTakeHomePay,color:P.OK.GREEN,name:"Take-Home Pay"}]}];if(n){let e=(0,P.BY)(a);e.tooltip&&(e.tooltip.enabled=!0),n.update(e)}else n=d().chart("incomeTaxPieContainer",(0,P.BY)(a))})(e)},onUserSubmit:(e,a)=>{eV&&e7.registerSubmit(),(0,V.sx)(G.f.INCOMETAXCALCSUBMISSION,{"input1-income":a.grossHouseholdIncome,"input2-location":"".concat(a.location.city,", ").concat(a.location.stateAbbreviation),"input3-filing-status":a.filingStatusType,"input4-deduction-type":a.deductionMethodType,"input5-deduction-amount":a.itemizedDeduction,"input6-401k-contribution":a.contributionTo401k,"input7-ira-contribution":a.contributionToTraditionalIra,"input8-tax-credits":a.federalTaxCredits,"input9-personal-exemptions":a.stateDependentDeductions,"input10-other-deductions":a.federalOtherPreTaxDeductions,"output1-federal-tax":e.federalLiability.amount,"output2-fica-tax":e.ficaLiability.amount,"output3-state-tax":e.stateLiability.amount,"output4-local-tax":e.localLiability.amount,"output5-total-tax":e.totalLiability.amount,"output6-take-home-pay":e.totalTakeHomePay}
1)}}),an=(0,s.useMemo)(()=>{var e,a;return null==e$||null==(a=e$.standardDeductions[at.values.filingStatusType])||null==(e=a[0])?void 0:e.value},[e$,at.values.filingStatusType]),ar=e=>eU?"$".concat(Math.round(e).toLocaleString()):"$--",as=e=>{let a="marginal"===eK?e.marginalRate:e.effectiveRate;return eU?"".concat((100*a).toFixed(2),"%"):"--"},al=e8.results,[ai]=(0,h.A2)("con-1238_webplatform_onboarding-income-tax",{},{overrideAttributes:{url:window.location.href}}),ao=!!(null==ai?void 0:ai.enabled)&&"off"!==ai.variationKey,ac=null==ai||null==(a=ai.variables)?void 0:a.trigger_minimum,au=eV&&ao&&eU&&(null!=eW?eW:0)>(null!=ac?ac:25e4),ad=null==ai||null==(t=ai.variables)?void 0:t.placement,am=ad&&ad>=1&&ad<=2?ad:1,ah=!!(null==ai||null==(o=ai.variables)?void 0:o.display_popup),ap=(null==ai||null==(u=ai.variables)?void 0:u.redirect_on_click)===!1,ag={header:null!=(eo=null==ai||null==(b=ai.variables)?void 0:b.cta_header)?eo:"",subheader:null==ai||null==(T=ai.variables)?void 0:T.cta_subtext,buttonCopy:null!=(ec=null==ai||null==(I=ai.variables)?void 0:I.button_copy)?ec:"",injectedValue:null!=(eu=null==al||null==(k=al.totalLiability)?void 0:k.amount)?eu:0},av=(0,N.ie)(null==ai?void 0:ai.variables),[af,ax]=(0,s.useState)(!1),ay=(0,s.useRef)(null),ab=(0,s.useRef)(!1),[aj]=(0,h.jt)();(0,s.useEffect)(()=>{au||ax(!1)},[au]);let{isSubmittingMatches:aN,confirmationUrl:aC,submitError:a_,handleSubmit:aA,abort:aT}=(0,x.G)({effectiveInputs:at.values,openInNewTab:ap,resolveCurrentSavingsBracket:e=>e.assetTier,submitEventName:G.f.INCOMETAXONBOARDINGSUBMIT,funnelCompleteEventName:G.f.CAPTIVATEFUNNELCOMPLETE,utmData:U.gf});(0,y.A)(ay,()=>{au&&(ab.current||(ab.current=!0,(0,V.sx)(G.f.INCOMETAXONBOARDINGDISPLAY),aj(G.f.INCOMETAXONBOARDINGDISPLAY)))},!0,[au]);let aS=au?(0,r.jsx)("div",{ref:ay,className:w().onboardingCtaSlot,children:(0,r.jsx)(j.A,{config:ag,testId:"incometax-onboarding-cta",showInlineForm:!ah&&af,onCtaClick:()=>{(0,V.sx)(G.f.INCOMETAXONBOARDINGCLICK),aj(G.f.INCOMETAXONBOARDINGCLICK),ax(!0)},onFormSubmit:aA,isSubmittingForm:aN,confirmationUrl:aC,submitError:a_,inputClickEventName:G.f.INCOMETAXONBOARDINGINPUTCLICK,inputNextEventName:G.f.INCOMETAXONBOARDINGINPUTNEXT,assetTierOptions:X,formOptions:av})}):null;return eV?(0,r.jsxs)("div",{id:w().incomeTaxCalculator,className:c()(S().calculatorParent,S().fullWidthCalculator,S().standaloneCalculator),children:[(0,r.jsx)("div",{ref:e7.surfaceRef,className:S().calculatorContainer,children:(0,r.jsxs)("div",{className:S().formLayout,children:[(0,r.jsx)(m.QI,{value:at,children:(0,r.jsxs)("form",{onSubmit:at.handleSubmit,className:c()(S().calculatorForm,S().segmentedForm,w().formContainer),children:[(0,r.jsxs)("div",{className:S().formCard,children:[(0,r.jsx)("div",{className:S().formCardHeader,children:"Tax Details"}),(0,r.jsxs)("div",{className:S().formInputsContainer,children:[(0,r.jsx)(H.A,{field:"grossHouseholdIncome",config:D.grossHouseholdIncome}),(0,r.jsx)(K.A,{field:"location",config:e4}),(0,r.jsx)(W.A,{field:"filingStatusType",config:D.filingStatusType}),(0,r.jsx)(W.A,{field:"deductionMethodType",config:D.deductionMethodType,onChangeCallback:e=>{"ITEMIZED"!==e&&(at.setFieldValue("itemizedDeduction",O.itemizedDeduction),at.setFieldTouched("itemizedDeduction",!1))}}),"STANDARD"===at.values.deductionMethodType&&void 0!==an&&(0,r.jsxs)("span",{className:S().helperText,children:["You're filing as ‘",null==(M=D.filingStatusType.options.find(e=>e.value===at.values.filingStatusType))?void 0:M.label,"’, which means your standard deduction is $",an.toLocaleString()]}),"ITEMIZED"===at.values.deductionMethodType&&(0,r.jsx)(H.A,{field:"itemizedDeduction",config:D.itemizedDeduction})]})]}),(0,r.jsxs)("div",{className:S().formCard,children:[(0,r.jsx)("div",{className:S().formCardHeader,children:"Retirement Account Contributions"}),(0,r.jsxs)("div",{className:S().formInputsContainer,children:[(0,r.jsx)(H.A,{field:"contributionTo401k",config:D.contributionTo401k}),(0,r.jsx)(H.A,{field:"contributionToTraditionalIra",config:D.contributionToTraditionalIra})]})]}),(0,r.jsxs)("div",{className:S().formCard,children:[(0,r.jsx)("div",{className:S().formCardHeader,children:"Advanced Options"}),(0,r.jsxs)("div",{className:S().formInputsContainer,children:[(0,r.jsx)(H.A,{field:"federalTaxCredits",config:D.federalTaxCredits}),(0,r.jsx)(q.A,{field:"stateDependentDeductions",config:D.stateDependentDeductions,min:0,max:null!=(eC=null==e$?void 0:e$.maxStateDependentDeductions)?eC:12,step:1}),(0,r.jsx)(H.A,{field:"federalOtherPreTaxDeductions",config:D.federalOtherPreTaxDeductions})]})]}),(0,r.jsx)("button",{type:"submit","data-testid":"calculate-button",className:S().calculateButton,disabled:!e$&&!eX||at.isSubmitting,children:(e$||eX)&&!at.isSubmitting?"Calculate":(0,r.jsx)("i",{className:"fa fa-circle-notch fa-spin"})}),eX&&(0,r.jsx)("p",{className:S().errorMessage,children:eX}),e8.errorResults&&(0,r.jsx)("p",{className:S().errorMessage,children:e8.errorResults.message})]})}),(0,r.jsxs)("div",{className:c()(S().resultsContainer,w().resultsContainer),children:[(0,r.jsxs)("div",{className:S().resultBox,children:[(0,r.jsxs)("h3",{className:S().resultTitle,children:[e2?"Your ".concat(e9," Estimated State Income Tax:"):"Your ".concat(e9," Federal Income and FICA Taxes:"),(0,r.jsx)("span",{className:S().hideMobileTooltip,children:(0,r.jsx)(R.A,{id:"incomeTaxTotal",message:e2?"The combined amount of state and local taxes for ".concat(e9,"."):"The combined amount of federal income tax plus Social Security and Medicare taxes for ".concat(e9,".")})})]}),(0,r.jsx)("div",{className:c()(S().resultValue,S().primary),children:ar(e2?(null!=(e_=null==al||null==(B=al.stateLiability)?void 0:B.amount)?e_:0)+(null!=(eA=null==al||null==(Q=al.localLiability)?void 0:Q.amount)?eA:0):(null!=(eT=null==al||null==(ee=al.federalLiability)?void 0:ee.amount)?eT:0)+(null!=(eS=null==al||null==(ea=al.ficaLiability)?void 0:ea.amount)?eS:0))})]}),(0,r.jsx)("div",{className:S().adContainer,children:(0,r.jsx)(E.default,{positionId:"sponsorcalcsimple",adUnitSize:["fluid"],article:eY,heightClass:"calculator--simple"})}),(0,r.jsxs)("div",{className:S().resultBox,children:[(0,r.jsxs)("h3",{className:c()(S().resultTitle,w().resultBreakdownTitle),children:["Breakdown of Your Income Taxes",(0,r.jsx)("span",{className:S().hideMobileTooltip,children:(0,r.jsx)(R.A,{id:"incomeTaxBreakdown",children:(0,r.jsxs)("div",{className:w().breakdownTooltip,children:[(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Tax Type"}),": Shows how your taxes are divided across federal, payroll, state and local categories."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Marginal Tax Rate"}),": The tax rate applied to your last dollar of income."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Effective Tax Rate"}),": Your total taxes divided by your total income, as a percentage."]}),(0,r.jsxs)("p",{children:[(0,r.jsxs)("strong",{children:[e9," Taxes"]}),": The taxes owed for the ",e9,"-",e9+1," filing season."]})]})})})]}),(0,r.jsxs)("div",{className:w().breakdownTable,children:[(0,r.jsx)("div",{className:w().breakdownHeaderCell,children:"Tax Type"}),(0,r.jsx)("div",{className:c()(w().breakdownHeaderCell,w().breakdownCellCenter),children:(0,r.jsxs)("div",{className:w().rateToggle,children:[(0,r.jsx)("button",{type:"button",className:c()(w().rateToggleBtn,{[w().rateToggleBtnActive]:"marginal"===eK}),onClick:()=>ez("marginal"),children:"Marginal Tax Rate"}),(0,r.jsx)("button",{type:"button",className:c()(w().rateToggleBtn,{[w().rateToggleBtnActive]:"effective"===eK}),onClick:()=>ez("effective"),children:"Effective Tax Rate"})]})}),(0,r.jsxs)("div",{className:c()(w().breakdownHeaderCell,w().breakdownCellRight),children:[e9," Taxes"]}),(0,r.jsx)("div",{className:w().breakdownCell,children:"Federal Tax"}),(0,r.jsx)("div",{className:c()(w().breakdownCell,w().breakdownCellCenter),children:as(null!=(eI=null==al?void 0:al.federalLiability)?eI:Z.federalLiability)}),(0,r.jsx)("div",{className:c()(w().breakdownCell,w().breakdownCellRight),children:ar(null!=(ew=null==al||null==(et=al.federalLiability)?void 0:et.amount)?ew:0)}),(0,r.jsx)("div",{className:w().breakdownCell,children:"FICA Tax"}),(0,r.jsx)("div",{className:c()(w().breakdownCell,w().breakdownCellCenter),children:as(null!=(eR=null==al?void 0:al.ficaLiability)?eR:Z.ficaLiability)}),(0,r.jsx)("div",{className:c()(w().breakdownCell,w().breakdownCellRight),children:ar(null!=(eE=null==al||null==(en=al.ficaLiability)?void 0:en.amount)?eE:0)}),(0,r.jsx)("div",{className:w().breakdownCell,children:"State Tax"}),(0,r.jsx)("div",{className:c()(w().breakdownCell,w().breakdownCellCenter),children:as(null!=(ek=null==al?void 0:al.stateLiability)?ek:Z.stateLiability)}),(0,r.jsx)("div",{className:c()(w().breakdownCell,w().breakdownCellRight),children:ar(null!=(eM=null==al||null==(er=al.stateLiability)?void 0:er.amount)?eM:0)}),(0,r.jsx)("div",{className:w().breakdownCell,children:"Local Tax"}),(0,r.jsx)("div",{className:c()(w().breakdownCell,w().breakdownCellCenter),children:as(null!=(eL=null==al?void 0:al.localLiability)?eL:Z.localLiability)}),(0,r.jsx)("div",{className:c()(w().breakdownCell,w().breakdownCellRight),children:ar(null!=(eB=null==al||null==(es=al.localLiability)?void 0:es.amount)?eB:0)}),(0,r.jsx)("div",{className:w().breakdownTotalCell,children:(0,r.jsxs)("strong",{children:[(0,r.jsx)("span",{className:w().mobileLabel,children:"Total Taxes"}),(0,r.jsx)("span",{className:w().desktopLabel,children:"Total Income Taxes"})]})}),(0,r.jsx)("div",{className:c()(w().breakdownTotalCell,w().breakdownCellCenter),children:"—"}),(0,r.jsx)("div",{className:c()(w().breakdownTotalCell,w().breakdownCellRight),children:(0,r.jsx)("strong",{children:ar(null!=(eF=null==al||null==(el=al.totalLiability)?void 0:el.amount)?eF:0)})})]})]}),(0,r.jsxs)("div",{className:S().resultBox,children:[(0,r.jsxs)("h3",{className:S().resultTitle,children:["Your Annual Take-Home Pay",(0,r.jsx)("span",{className:S().hideMobileTooltip,children:(0,r.jsx)(R.A,{id:"incomeTaxTakeHome",message:"What you keep after taxes and payroll deductions."})})]}),(0,r.jsx)("div",{className:c()(S().resultValue,S().secondary),children:ar(null!=(eO=null==al?void 0:al.totalTakeHomePay)?eO:0)}),(0,r.jsx)("div",{className:c()(S().chartContainer,S().singleChart),children:(0,r.jsx)("div",{id:"incomeTaxPieContainer",className:S().pieContainer})}),(0,r.jsxs)("div",{className:S().chartLegend,children:[(0,r.jsxs)("div",{className:S().legendItem,children:[(0,r.jsxs)("div",{className:S().legendLabel,children:[(0,r.jsx)("div",{className:S().legendColor,style:{backgroundColor:P.OK.ORANGE}}),(0,r.jsx)("span",{children:"Total Income Taxes"})]}),(0,r.jsx)("span",{className:S().legendAmount,children:ar(null!=(eD=null==al||null==(ei=al.totalLiability)?void 0:ei.amount)?eD:0)})]}),(0,r.jsxs)("div",{className:S().legendItem,children:[(0,r.jsxs)("div",{className:S().legendLabel,children:[(0,r.jsx)("div",{className:S().legendColor,style:{backgroundColor:P.OK.BLUE}}),(0,r.jsx)("span",{children:"Retirement Contributions"})]}),(0,r.jsx)("span",{className:S().legendAmount,children:ar(null!=(eP=null==al?void 0:al.totalRetirementContributions)?eP:0)})]}),(0,r.jsxs)("div",{className:S().legendItem,children:[(0,r.jsxs)("div",{className:S().legendLabel,children:[(0,r.jsx)("div",{className:S().legendColor,style:{backgroundColor:P.OK.GREEN}}),(0,r.jsx)("span",{children:"Take-Home Pay"})]}),(0,r.jsx)("span",{className:S().legendAmount,children:ar(null!=(eG=null==al?void 0:al.totalTakeHomePay)?eG:0)})]})]})]}),2===am&&aS,(0,r.jsx)("div",{className:c()(S().adContainer,w().secondAd),children:(0,r.jsx)(E.default,{positionId:"sponsorcalcpb",adUnitSize:["fluid"],article:eY,heightClass:"calculator--pageBreakOne"})}),1===am&&aS,au&&ah&&af&&(0,r.jsx)(_.A,{isOpen:af,onClose:()=>{(0,V.sx)(G.f.INCOMETAXONBOARDINGEXIT),aj(G.f.INCOMETAXONBOARDINGEXIT),aT(),ax(!1)},children:(0,r.jsx)(C.A,{variant:"modal",onSubmit:aA,isSubmitting:aN,confirmationUrl:aC,submitError:a_,buttonCopy:ag.buttonCopy,inputClickEventName:G.f.INCOMETAXONBOARDINGINPUTCLICK,inputNextEventName:G.f.INCOMETAXONBOARDINGINPUTNEXT,assetTierOptions:X,formOptions:av})}),e7.element]})]})}),(0,r.jsx)(F,{})]}):(0,r.jsxs)("div",{className:S().calculatorParent,children:[(0,r.jsxs)("div",{className:S().calculatorContainer,children:[(0,r.jsx)("h2",{className:S().calculatorTitle,children:"Income Tax Calculator"}),(0,r.jsxs)("p",{className:S().calculatorDescription,children:["Calculate your federal, state and local taxes for the ",e9," tax year."]}),(0,r.jsxs)("div",{className:S().formLayout,children:[(0,r.jsx)(m.QI,{value:at,children:(0,r.jsxs)("form",{onSubmit:at.handleSubmit,className:S().calculatorForm,children:[(0,r.jsxs)("div",{className:S().formInputsContainer,children:[(0,r.jsx)(H.A,{field:"grossHouseholdIncome",config:D.grossHouseholdIncome}),(0,r.jsx)(K.A,{field:"location",config:e4}),(0,r.jsx)(W.A,{field:"filingStatusType",config:D.filingStatusType}),(0,r.jsx)(W.A,{field:"deductionMethodType",config:D.deductionMethodType,onCh
1angeCallback:e=>{"ITEMIZED"!==e&&(at.setFieldValue("itemizedDeduction",O.itemizedDeduction),at.setFieldTouched("itemizedDeduction",!1))}}),"STANDARD"===at.values.deductionMethodType&&void 0!==an&&(0,r.jsxs)("span",{className:S().helperText,children:["You're filing as ‘",null==(ed=D.filingStatusType.options.find(e=>e.value===at.values.filingStatusType))?void 0:ed.label,"’, which means your standard deduction is $",an.toLocaleString()]}),"ITEMIZED"===at.values.deductionMethodType&&(0,r.jsx)(H.A,{field:"itemizedDeduction",config:D.itemizedDeduction})]}),(0,r.jsxs)("button",{type:"button",className:S().advancedButton,onClick:()=>e0(!eQ),children:["Advanced",(0,r.jsx)("i",{className:"fa ".concat(eQ?"fa-chevron-up":"fa-chevron-down")})]}),eQ&&(0,r.jsxs)("div",{className:c()(w().advancedFormFields,S().formInputsContainer),children:[(0,r.jsx)(H.A,{field:"contributionTo401k",config:D.contributionTo401k}),(0,r.jsx)(H.A,{field:"contributionToTraditionalIra",config:D.contributionToTraditionalIra}),(0,r.jsx)(H.A,{field:"federalOtherPreTaxDeductions",config:D.federalOtherPreTaxDeductions}),(0,r.jsx)(H.A,{field:"federalTaxCredits",config:D.federalTaxCredits}),(0,r.jsx)(q.A,{field:"stateDependentDeductions",config:D.stateDependentDeductions,min:0,max:null!=(ef=null==e$?void 0:e$.maxStateDependentDeductions)?ef:12,step:1})]}),(0,r.jsx)("button",{type:"submit","data-testid":"calculate-button",className:S().calculateButton,disabled:!e$&&!eX||at.isSubmitting,children:(e$||eX)&&!at.isSubmitting?"Calculate":(0,r.jsx)("i",{className:"fa fa-circle-notch fa-spin"})}),eX&&(0,r.jsx)("p",{className:S().errorMessage,children:eX}),e8.errorResults&&(0,r.jsx)("p",{className:S().errorMessage,children:e8.errorResults.message})]})}),(0,r.jsxs)("div",{className:S().fullWidth,children:[(0,r.jsxs)("div",{className:S().resultsContainer,children:[(0,r.jsxs)("div",{className:S().resultBox,children:[(0,r.jsxs)("h3",{className:S().resultTitle,children:["Your ",e9," Total Income Taxes",(0,r.jsx)(R.A,{id:"incomeTaxTotalEmbedded",message:"Estimated taxes owed for ".concat(e9,". Includes federal, FICA, state and local taxes.")})]}),(0,r.jsx)("div",{className:c()(S().resultValue,S().primary),children:ar(null!=(ex=null==al||null==(em=al.totalLiability)?void 0:em.amount)?ex:0)})]}),(0,r.jsxs)("div",{className:S().resultBox,children:[(0,r.jsxs)("h4",{className:S().resultSubtitle,children:["Federal Income & FICA Taxes",(0,r.jsx)(R.A,{id:"incomeTaxFederalEmbedded",message:"Estimated federal income tax plus Social Security and Medicare taxes for ".concat(e9,".")})]}),(0,r.jsx)("div",{className:c()(S().resultValue,S().secondary),children:ar((null!=(ey=null==al||null==(eh=al.federalLiability)?void 0:eh.amount)?ey:0)+(null!=(eb=null==al||null==(ep=al.ficaLiability)?void 0:ep.amount)?eb:0))})]}),(0,r.jsxs)("div",{className:S().resultBox,children:[(0,r.jsxs)("h4",{className:S().resultSubtitle,children:["State Taxes",(0,r.jsx)(R.A,{id:"incomeTaxStateEmbedded",message:"Estimated state taxes for ".concat(e9,".")})]}),(0,r.jsx)("div",{className:c()(S().resultValue,S().secondary),children:ar(null!=(ej=null==al||null==(eg=al.stateLiability)?void 0:eg.amount)?ej:0)})]}),(0,r.jsxs)("div",{className:S().resultBox,children:[(0,r.jsxs)("h4",{className:S().resultSubtitle,children:["Local Taxes",(0,r.jsx)(R.A,{id:"incomeTaxLocalEmbedded",message:"Estimated local taxes for ".concat(e9,".")})]}),(0,r.jsx)("div",{className:c()(S().resultValue,S().secondary),children:ar(null!=(eN=null==al||null==(ev=al.localLiability)?void 0:ev.amount)?eN:0)})]})]}),eU&&(0,r.jsx)("button",{type:"button",className:S().ctaWhite,onClick:()=>{(0,V.sx)(G.f.INCOMETAXCTACLICK);let e=(0,Y.f6)(U.Bu,{utm_source:U.av,utm_campaign:U.x$,...(0,Y.xU)(e1)},e1);window.open(e,"_top")},children:"Find an Advisor"})]})]})]}),(0,r.jsx)(F,{})]})}},57412:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>ee});var n=t(95155),r=t(12115),s=t(85203),l=t.n(s),i=t(6311),o=t.n(i),c=t(57740),u=t.n(c),d=t(58805),m=t.n(d),h=t(27362),p=t.n(h),g=t(9088),v=t(74006),f=t(57902),x=t(65401);let y="deposit",b=[{value:"deposit",label:"Deposit"},{value:"withdrawal",label:"Withdrawal"}],j={startingAmount:1e4,transactionAmount:1e3,transactionFrequency:12,rateOfReturn:5,yearsToGrow:10},N={startingAmount:{label:"Principal",type:"currency",min:0,max:1e8,step:1,tooltipMessage:"The starting amount of money you plan to save or invest.",disabled:!1,error:"",formatMethod:Number.parseFloat},transactionAmount:{label:"Recurring Transaction Amount",type:"currency",min:0,max:1e8,step:1,tooltipMessage:"Choose whether you will make regular contributions or withdrawals, then enter the amount.",disabled:!1,error:"",formatMethod:Number.parseFloat},transactionFrequency:{label:"Transaction Frequency",type:"select",tooltipMessage:"Choose how often you’ll contribute or withdraw funds.",options:[{value:12,label:"Monthly"},{value:1,label:"Annually"}],disabled:!1,error:"",formatMethod:Number.parseInt},rateOfReturn:{label:"Rate of Return",type:"percentage",min:.25,max:100,step:"0.01",tooltipMessage:"The assumed annual rate of return used to project your balance. The calculator applies this rate consistently over the selected period.",disabled:!1,error:"",formatMethod:Number.parseFloat},yearsToGrow:{label:"Years to Grow",type:"number",min:1,max:30,step:1,tooltipMessage:"Enter the number of years over which you want to project your balance.",disabled:!1,error:"",formatMethod:Number.parseInt}},C=e=>{let{form:a,transactionType:t,onTransactionTypeChange:r,isCalculating:s}=e,{tooltipMessage:l,label:i,...o}=a.getInputGroupProps("transactionAmount");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:u().formInputsContainer,children:[(0,n.jsx)(g.A,{...a.getInputGroupProps("startingAmount")}),(0,n.jsxs)("div",{className:m().inputGroup,children:[(0,n.jsxs)("label",{htmlFor:o.id,className:o.error?m().error:"",children:[i,(0,n.jsx)(f.A,{id:o.id,message:l})]}),(0,n.jsx)(v.A,{styles:m(),...o,errorMsg:o.error}),(0,n.jsx)("div",{className:p().transactionTypeToggle,children:(0,n.jsx)(x.I,{options:b,value:t,onChange:e=>r(e)})})]}),(0,n.jsx)(g.A,{...a.getInputGroupProps("transactionFrequency")}),(0,n.jsx)(g.A,{...a.getInputGroupProps("rateOfReturn")}),(0,n.jsx)(g.A,{...a.getInputGroupProps("yearsToGrow")})]}),(0,n.jsx)("button",{type:"submit",className:u().calculateButton,disabled:s,children:s?(0,n.jsx)("i",{className:"fa fa-circle-notch fa-spin"}):"Calculate"})]})};
1var _=t(54526),A=t.n(_),T=t(73866),S=t(8036),I=t(78535);let w=()=>{let e="".concat(T.Jv,"?utm_source=").concat(T.av,"&utm_campaign=").concat(T.mH);return(0,n.jsxs)("div",{className:A().block,children:[(0,n.jsx)("div",{className:A().icon,children:(0,n.jsx)("img",{src:"/cds-images/calculators/light-bulb.svg",alt:"Light bulb"})}),(0,n.jsxs)("div",{className:A().heading,children:[(0,n.jsx)("div",{className:A().header,children:"Ready for the next step?"}),(0,n.jsx)("div",{className:A().subheader,children:"A financial advisor may be able to help you build a financial plan for the road ahead."})]}),(0,n.jsx)("a",{href:e,className:A().button,onClick:()=>{(0,S.sx)(I.f.FUTUREVALUECTACLICK)},children:"Find an Advisor"})]})};var R=t(3540);let E=(e,a)=>"".concat(e," ").concat(a).concat(1===e?"":"s"),k=e=>{var a;let{calculated:t,results:r,formatCurrency:s,displayedYears:l,displayedTransactionFrequency:i,standalone:o=!1}=e,c=null!=(a=r.monthsUntilDepletion)?a:0,d=t&&c>0,m=o?"".concat(p().resultCopy," ").concat(p().resultCopyStandalone):p().resultCopy,h=o?"".concat(p().resultCopyValue," ").concat(p().resultCopyValueStandalone):p().resultCopyValue;if(d){let e=c>=12*l;return(0,n.jsxs)("p",{className:m,children:["Your projected balance reaches $0 after approximately"," ",(0,n.jsx)("span",{className:h,children:((e,a)=>{let t=Math.floor(e/12),n=e%12;return 1===a||0===n?E(t,"year"):0===t?E(n,"month"):"".concat(E(t,"year")," and ").concat(E(n,"month"))})(c,i)}),(0,n.jsx)(f.A,{id:"futureValueResult",message:e?"Based on your inputs, your projected balance is $0 at the end of the selected projection period.":"Based on your inputs, the projected withdrawals reduce your balance to $0 before the end of the selected projection period."})]})}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("h3",{className:u().resultTitle,children:["Your projected balance after ",E(l,"year")," is",(0,n.jsx)("span",{className:p().tooltipDesktopOnly,children:(0,n.jsx)(f.A,{id:"futureValueResult",message:"This projected balance reflects your initial balance, recurring deposits or withdrawals, and estimated growth based on the assumed rate of return."})})]}),(0,n.jsx)("output",{className:"".concat(u().resultValue," ").concat(u().primary," ").concat(p().resultFigure),children:t?s(r.finalValue):"$--"})]})},M="futureValueBarContainer",L=e=>{let{calculated:a,results:t,formatCurrency:r,displayedYears:s,displayedTransactionType:l,displayedTransactionFrequency:i,displayedStartingAmount:o,emailGateElement:c}=e;return(0,n.jsxs)("div",{className:u().resultsContainer,children:[(0,n.jsx)("div",{className:u().resultBox,children:(0,n.jsx)(k,{calculated:a,results:t,formatCurrency:r,displayedYears:s,displayedTransactionFrequency:i,standalone:!0})}),(0,n.jsxs)("div",{className:u().chartsWrapper,children:[(0,n.jsx)("div",{className:u().chartsContainer,children:(0,n.jsxs)("div",{className:"".concat(u().chartContainer," ").concat(u().singleChart),children:[(0,n.jsxs)("p",{className:u().chartTitle,children:["Projected Balance Over Time",(0,n.jsx)(f.A,{id:"futureValueBarChart",message:"This shows how your initial balance, recurring deposits or withdrawals, and estimated investment growth affect your projected balance over time."})]}),(0,n.jsx)("div",{id:M,className:u().barContainer})]})}),(0,n.jsxs)("div",{className:u().chartLegend,children:[(0,n.jsxs)("div",{className:u().legendItem,children:[(0,n.jsxs)("div",{className:u().legendLabel,children:[(0,n.jsx)("div",{className:u().legendColor,style:{backgroundColor:R.OK.ORANGE}}),(0,n.jsx)("span",{children:"Principal"})]}),(0,n.jsx)("span",{className:u().legendAmount,children:r(o)})]}),(0,n.jsxs)("div",{className:u().legendItem,children:[(0,n.jsxs)("div",{className:u().legendLabel,children:[(0,n.jsx)("div",{className:u().legendColor,style:{backgroundColor:R.OK.BLUE}}),(0,n.jsx)("span",{children:"withdrawal"===l?"Total Withdrawals":"Total Deposits"})]}),(0,n.jsx)("span",{className:u().legendAmount,children:a?r(t.totalTransactions):"$--"})]}),(0,n.jsxs)("div",{className:u().legendItem,children:[(0,n.jsxs)("div",{className:u().legendLabel,children:[(0,n.jsx)("div",{className:u().legendColor,style:{backgroundColor:R.OK.GREEN}}),(0,n.jsx)("span",{children:"Interest Earned"})]}),(0,n.jsx)("span",{className:u().legendAmount,children:a?r(t.totalInterestEarned):"$--"})]})]})]}),(0,n.jsx)(w,{}),c]})};var B=t(13975),F=t(37240),O=t(78824),D=t(16405);let P=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{children:"These calculator results are hypothetical estimates based on the inputs and assumptions selected. They do not represent an actual client, account or specific investment. Actual investment results will vary and may be negative."}),(0,n.jsx)("p",{children:"This is not an offer to buy or sell any security or interest. All investing involves risk, including loss of principal. Working with an adviser may come with potential downsides such as payment of fees (which will reduce returns). Past performance is not a guarantee of future results. There are no guarantees that working with an adviser will yield positive returns. The existence of a fiduciary duty does not prevent the rise of potential conflicts of interest."}),(0,n.jsx)("p",{children:"Articles, opinions, and tools are for general information only and are not intended to provide specific advice or recommendations for any individual. We suggest that you consult your accountant, tax, or legal advisor concerning your individual situation."}),(0,n.jsx)("p",{children:'SmartAsset.com is not intended to provide legal advice, tax advice, accounting advice or financial advice (Other than referring users to third party advisers registered or chartered as fi
1duciaries ("Adviser(s)") with a regulatory body in the United States). Articles, opinions, and tools are for general information only and are not intended to provide specific advice or recommendations for any individual. We suggest that you consult your accountant, tax, or legal advisor concerning your individual situation.'})]}),G=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B.A,{title:"About This Calculator",content:F.dt[O.c.FUTURE_VALUE].about}),(0,n.jsx)(B.A,{title:"Assumptions",children:(0,n.jsx)(n.Fragment,{children:(0,D.Ay)(F.dt[O.c.FUTURE_VALUE].assumptions)})}),(0,n.jsx)(B.A,{children:(0,n.jsx)(P,{})})]});var V=t(20063),Y=t(14538);let U={utm_source:T.av,utm_campaign:T.mH},H=e=>{let{calculated:a,results:t,formatCurrency:s,displayedYears:l,displayedTransactionType:i,displayedTransactionFrequency:o,errorMessage:c}=e,d=(0,V.usePathname)(),m=(0,r.useMemo)(()=>(0,Y.f6)(T.Jv,U,d),[d]),h=a?s(t.totalTransactions):"$--",g=a?s(t.totalInterestEarned):"$--",v="withdrawal"===i;return(0,n.jsxs)("div",{className:u().fullWidth,children:[(0,n.jsxs)("div",{className:u().resultsContainer,children:[(0,n.jsx)("div",{className:u().resultBox,children:(0,n.jsx)(k,{calculated:a,results:t,formatCurrency:s,displayedYears:l,displayedTransactionFrequency:o})}),(0,n.jsxs)("div",{className:u().resultBox,children:[(0,n.jsxs)("h4",{className:u().resultSubtitle,children:["Total ",v?"Withdrawals":"Deposits",(0,n.jsx)(f.A,{id:"futureValueTransactionTotal",message:v?"This is the projected total amount withdrawn over the selected projection period.":"This is the total amount of planned recurring deposits over the selected projection period."})]}),(0,n.jsx)("output",{className:"".concat(u().resultValue," ").concat(u().secondary," ").concat(p().resultFigure),children:h})]}),!v&&(0,n.jsxs)("div",{className:u().resultBox,children:[(0,n.jsxs)("h4",{className:u().resultSubtitle,children:["Total Interest Earned",(0,n.jsx)(f.A,{id:"futureValueInterestEarned",message:"This shows how much interest your principal balance and future deposits can potentially earn over the selected projection period."})]}),(0,n.jsx)("output",{className:"".concat(u().resultValue," ").concat(u().secondary," ").concat(p().resultFigure),children:g})]}),c&&(0,n.jsx)("p",{className:u().errorMessage,children:c})]}),a&&(0,n.jsx)("a",{href:m,className:u().ctaWhite,onClick:()=>{(0,S.sx)(I.f.FUTUREVALUECTACLICK)},children:"Find an Advisor"})]})};var W=t(30235),q=t(56498);let K=async e=>{let a={...e,rateOfReturn:Number((e.rateOfReturn/100).toFixed(6))};return await (0,q.t0)("/calculators/future-value",a)};var z=t(68968);let $=new Date().getFullYear(),J="future-value-calculator-title",X={defaultInputs:j,constraints:N},Z={finalValue:0,totalTransactions:0,totalInterestEarned:0,yearlyBreakdown:[]},Q=(e,a)=>{let t=(0,R.g2)(e,a);return{...t,tooltip:{...t.tooltip,outside:!0}}},ee=e=>{let{isStandalone:a=!0}=e,[t,s]=(0,r.useState)(y),[i,c]=(0,r.useState)(!1),d=(0,r.useRef)(null),[m,h]=(0,r.useState)({yearsToGrow:j.yearsToGrow,transactionType:y,transactionFrequency:j.transactionFrequency,startingAmount:j.startingAmount}),{form:p,api:g,formatCurrency:v}=(0,W.qE)({formConfig:X,defaultResults:Z,formatCurrency:e=>Number.isFinite(e)?"$".concat(Math.round(e).toLocaleString()):"$--"}),{registerSubmit:f,element:x,surfaceRef:b}=(0,z.R)(O.c.FUTURE_VALUE),N=(0,r.useCallback)((e,a,t,n)=>{var r;if(!(null==t||null==(r=t.yearlyBreakdown)?void 0:r.length))return;let{series:s,endBalances:l,cumulativeTransactions:i}=((e,a,t)=>{let n=t.yearlyBreakdown,r=n.map(e=>Math.round(Math.max(e.endBalance,0))),s=n.map(e=>Math.round(e.transactionsToDate));if("deposit"===a)return{series:[{type:"column",name:"Principal",data:n.map(()=>Math.round(e)),color:R.OK.ORANGE,visible:!0},{type:"column",name:"Total Deposits",data:s,color:R.OK.BLUE,visible:!0},{type:"column",name:"Interest Earned",data:n.map(e=>Math.round(e.interestEarnedToDate)),color:R.OK.GREEN,visible:!0},{type:"column",name:"End Balances",data:r,visible:!1}],endBalances:r,cumulativeTransactions:s};let l=n.map((a,t)=>Math.min(Math.round(Math.max(e-a.transactionsToDate,0)),r[t]));return{series:[{type:"column",name:"Principal",data:l,color:R.OK.ORANGE,visible:!0},{type:"column",name:"Interest Earned",data:n.map((e,a)=>
1r[a]-l[a]),color:R.OK.GREEN,visible:!0},{type:"column",name:"Total Withdrawals",data:s,visible:!1},{type:"column",name:"End Balances",data:r,visible:!1}],endBalances:r,cumulativeTransactions:s}})(e,a,t),c="withdrawal"===a?{tooltip:{shared:!0,useHTML:!0,formatter(){var e,a;let t=this.x,n=this.points||[],r='<div class="'.concat(u().chartTooltip,'">');return r+='<div class="'.concat(u().chartTooltipTitle,'">In the year ').concat($+t+1,"</div>"),n.forEach(e=>{var a;r+='<div class="'.concat(u().chartTooltipLegend,'">'),r+='<div class="'.concat(u().chartTooltipLegendColor,'" style="background-color: ').concat(e.color,';"></div>'),r+="<span>".concat(e.series.name,": <strong>$").concat(null==e||null==(a=e.y)?void 0:a.toLocaleString(),"</strong></span>"),r+="</div>"}),r+='<div class="'.concat(u().chartTooltipLegend,'">'),r+='<div class="'.concat(u().chartTooltipLegendColor,'" style="background-color: ').concat(R.OK.BLUE,';"></div>'),r+="<span>Total Withdrawals: <strong>$".concat((null!=(e=i[t])?e:0).toLocaleString(),"</strong></span>"),r+="</div>",r+='<div class="'.concat(u().chartTooltipTotalBalance,'">'),r+="Total Balance: <strong>$".concat((null!=(a=l[t])?a:0).toLocaleString(),"</strong>"),r+="</div>",r+="</div>"}}}:void 0;if(d.current)if(n)d.current.destroy(),d.current=o().chart(M,Q(s,c));else{let e=Q(s,{...c,yAxis:{min:0,max:void 0}});e.tooltip&&(e.tooltip.enabled=!0),d.current.update(e,!0,!0)}else d.current=o().chart(M,Q(s,c))},[]);(0,r.useEffect)(()=>{if(a&&!d.current){let e=Array(j.yearsToGrow).fill(0),a=Q([{type:"column",name:"Principal",data:e,color:R.OK.ORANGE},{type:"column",name:"Total Deposits",data:e,color:R.OK.BLUE},{type:"column",name:"Interest Earned",data:e,color:R.OK.GREEN},{type:"column",name:"End Balances",data:e,visible:!1}],{yAxis:{min:0,max:1e5,endOnTick:!1,startOnTick:!0,...R.q5},tooltip:{enabled:!1}});d.current=o().chart(M,a)}},[a]),(0,r.useEffect)(()=>()=>{d.current&&(d.current.destroy(),d.current=null)},[]);let _=async e=>{if(e.preventDefault(),p.getFirstErrorField())return;(0,S.sx)(I.f.FUTUREVALUECALCSUBMIT,{"input1-starting-amount":p.inputs.startingAmount,"input2-transaction-amount":p.inputs.transactionAmount,"input3-transaction-frequency":p.inputs.transactionFrequency,"input4-return-rate":p.inputs.rateOfReturn,"input5-years":p.inputs.yearsToGrow,"input6-transaction-type":t});let n=await g.calculate(()=>K({...p.inputs,transactionType:t}));if(n){let e=!i;c(!0),h({yearsToGrow:p.inputs.yearsToGrow,transactionType:t,transactionFrequency:p.inputs.transactionFrequency,startingAmount:p.inputs.startingAmount}),a&&(f(),N(p.inputs.startingAmount,t,n,e))}},A=(0,n.jsxs)("form",{onSubmit:_,className:u().calculatorForm,children:[(0,n.jsx)(C,{form:p,transactionType:t,onTransactionTypeChange:s,isCalculating:g.isCalculating}),a&&g.errorResults&&(0,n.jsx)("p",{className:u().errorMessage,children:g.errorResults.message})]});if(!a){var T;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:u().calculatorParent,children:(0,n.jsxs)("section",{className:u().calculatorContainer,"aria-labelledby":J,children:[(0,n.jsx)("h2",{id:J,className:u().calculatorTitle,children:"Future Value Calculator"}),(0,n.jsx)("p",{className:u().calculatorDescription,children:(0,F.lr)(O.c.FUTURE_VALUE)}),(0,n.jsxs)("div",{className:u().formLayout,children:[A,(0,n.jsx)(H,{calculated:i,results:g.results,formatCurrency:v,displayedYears:m.yearsToGrow,displayedTransactionType:m.transactionType,displayedTransactionFrequency:m.transactionFrequency,errorMessage:null==(T=g.errorResults)?void 0:T.message})]})]})}),(0,n.jsx)(G,{})]})}return(0,n.jsxs)("div",{className:l()(u().calculatorParent,u().fullWidthCalculator,u().standaloneCalculator),children:[(0,n.jsx)("div",{ref:b,className:u().calculatorContainer,children:(0,n.jsxs)("div",{className:u().formLayout,children:[A,(0,n.jsx)(L,{calculated:i,results:g.results,formatCurrency:v,displayedYears:m.yearsToGrow,displayedTransactionType:m.transactionType,displayedTransactionFrequency:m.transactionFrequency,displayedStartingAmount:m.startingAmount,emailGateElement:x})]})}),(0,n.jsx)(G,{})]})}},62044:(e,a,t)=>{"use strict";let n;t.d(a,{default:()=>M});var r=t(95155),s=t(12115),l=t(56498);let i=async e=>{let a={...e};return a.inflationRate=Number((a.inflationRate/100).toFixed(6)),await (0,l.t0)("/calculators/inflation",a)};var o=t(57740),c=t.n(o),u=t(9088),d=t(57902);let m=new Date().getFullYear(),h={currentAmount:100,baseYear:m,targetYear:m+30,inflationRate:2.5},p=()=>{let e=[];for(let a=1914;a<=2100;
1a++)e.push({value:a,label:a.toString()});return e},g={currentAmount:{label:"Starting Amount",type:"currency",min:100,max:1e8,tooltipMessage:"Enter the amount of money you want to track to see how inflation changes its worth.",step:1,disabled:!1,error:"",formatMethod:Number.parseFloat},baseYear:{label:"Start Year",type:"select",tooltipMessage:"Pick the year when the amount of money was originally valued.",options:p(),disabled:!1,error:"",formatMethod:Number.parseInt},targetYear:{label:"End Year",type:"select",tooltipMessage:"Pick the ending year to find out how much your money would be worth at that time.",options:p(),disabled:!1,error:"",formatMethod:Number.parseInt},inflationRate:{label:"Future Inflation Rate",type:"percentage",min:0,max:25,tooltipMessage:"The future inflation rate defaults to 2.5% but you can add a custom inflation rate of up to 25%.",step:"0.01",disabled:!1,error:"",formatMethod:Number.parseFloat}};var v=t(78535),f=t(8036),x=t(6311),y=t.n(x),b=t(3540),j=t(30235),N=t(13975),C=t(37240),_=t(78824),A=t(16405);let T=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N.A,{title:"About This Calculator",content:C.dt[_.c.INFLATION].about}),(0,r.jsx)(N.A,{title:"Assumptions",children:(0,r.jsx)(r.Fragment,{children:(0,A.Ay)(C.dt[_.c.INFLATION].assumptions)})}),(0,r.jsx)(N.A,{children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:"This hypothetical example is for illustrative purposes only. Past inflation rates are not a guarantee of future rates."}),(0,r.jsx)("p",{children:"Articles, opinions, and tools are for general information only and are not intended to provide specific advice or recommendations for any individual. We suggest that you consult your accountant, tax, or legal advisor concerning your individual situation."}),(0,r.jsx)("p",{children:'SmartAsset.com is not intended to provide legal advice, tax advice, accounting advice or financial advice (Other than referring users to third party advisers registered or chartered as fiduciaries ("Adviser(s)") with a regulatory body in the United States). Articles, opinions, and tools are for general information only and are not intended to provide specific advice or recommendations for any individual.'})]})})]});var S=t(85203),I=t.n(S),w=t(68968);let R=new Date().getFullYear(),E={defaultInputs:h,constraints:g,customValidation:(e,a,t,n)=>{let r="";"targetYear"===e?r=a>t.baseYear?"":"End Year must be after Start Year":"baseYear"===e&&(r=a<t.targetYear?"":"End Year must be after Start Year"),n(e=>({...e,targetYear:{...e.targetYear,error:r}}))}},k={finalInflationAdjustedValue:0,totalPurchasingPowerLost:0,cumulativeInflationRate:0,yearlyBreakdown:[]},M=()=>{var e,a;let[t,l]=(0,s.useState)(0),[o,m]=(0,s.useState)(!0),[p,g]=(0,s.useState)(h),[x,N]=(0,s.useState)(!1),{form:C,api:A,formatCurrency:S}=(0,j.qE)({formConfig:E,defaultResults:k}),{registerSubmit:M,element:L,surfaceRef:B}=(0,w.R)(_.c.INFLATION),F=(0,s.useCallback)((e,a,t)=>{var r;if(!(null==a||null==(r=a.yearlyBreakdown)?void 0:r.length))return;let s=[{type:"line",name:"Dollar Value",data:a.yearlyBreakdown.map((a,t)=>{let n=e.baseYear+t,r=t>0?Math.pow(1+a.cumulativeInflationRate,1/t)-1:0;return{x:n,y:Math.round(a.inflationAdjustedValue),cumulativeRate:a.cumulativeInflationRate,avgRate:r}}),marker:{enabled:!1},color:b.OK.GREEN}];if(n)if(t)n.destroy(),n=y().chart("lineContainer",(0,b.fS)(s));else{let a=(0,b.fS)(s,{xAxis:{min:e.baseYear,max:e.targetYear},yAxis:{min:0,max:void 0}});a.tooltip&&(a.tooltip.enabled=!0),n.update(a)}else n=y().chart("lineContainer",(0,b.fS)(s))},[]),O=(0,s.useCallback)(async e=>{let a=await A.calculate(()=>i(e));if(a){N(!0),M(),(0,f.sx)(v.f.INFLATIONCALCSUBMISSION,{"input1-starting-amount":e.currentAmount,"input2-start-year":e.baseYear,"input3-end-year":e.targetYear,"input4-future-inflation":e.targetYear>R?e.inflationRate:null,"output1-final-value":a.finalInflationAdjustedValue}),g(e);let t=e.targetYear-e.baseYear;l(t>0&&a.cumulativeInflationRate?Math.pow(1+a.cumulativeInflationRate,1/t)-1:0),m(e.targetYear>R),F(e,a,!x)}return a},[A,l,g,m,x,F,M]);(0,s.useEffect)(()=>{if(!n){let e=[{type:"line",name:"Dollar Value",data:Array.from({length:h.targetYear-h.baseYear+1},(e,a)=>({x:h.baseYear+a,y:0})),marker:{enabled:!1},color:b.OK.GREEN}],a=(0,b.fS)(e,{xAxis:{min:h.baseYear,max:h.targetYear},yAxis:{min:0,max:300,endOnTick:!1,startOnTick:!0,...b.q5},tooltip:{enabled:!1}});n=y().chart("lineContainer",a)}},[]);let D=async e=>{e.preventDefault(),C.getFirstErrorField()||await O(C.inputs)};return(0,r.jsxs)("div",{className:I()(c().calculatorParent,c().fullWidthCalculator,c().standaloneCalculator),children:[(0,r.jsx)("div",{ref:B,className:c().calculatorContainer,children:(0,r.jsxs)("div",{className:c().formLayout,children:[(0,r.jsxs)("form",{onSubmit:D,className:c().calculatorForm,children:[(0,r.jsxs)("div",{className:c().formInputsContainer,children:[(0,r.jsx)(u.A,{...C.getInputGroupProps("currentAmount")}),(0,r.jsx)(u.A,{...C.getInputGroupProps("baseYear")}),(0,r.jsx)(u.A,{...C.getInputGroupProps("targetYear")}),C.inputs.targetYear>R&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.A,{...C.getInputGroupProps("inflationRate"),disabled:!1}),(0,r.jsxs)("p",{className:I()(c().helperText,c().italic),children:["Using an inflation rate of ",C.inputs.inflationRate.toFixed(2),"% from ",R+1," to ",C.inputs.targetYear]})]})]}),(0,r.jsx)("button",{type:"submit",className:c().calculateButton,disabled:A.isCalculating,children:A.isCalculating?(0,r.jsx)("i",{className:"fa fa-circle-notch fa-spin"}):"Calculate"}),A.errorResults&&(0,r.jsx)("p",{className:c().errorMessage,children:A.errorResults.message})]}),(0,r.jsxs)("div",{className:c().resultsContainer,children:[(0,r.jsxs)("div",{className:c().resultBox,children:[(0,r.jsx)("label",{children:(0,r.jsxs)("h3",{className:c().resultTitle,children:[x?"In ".concat(p.targetYear,", $").concat(p.currentAmount.toLocaleStr
1ing()," ").concat(p.targetYear>R?"will be":p.targetYear===R?"is":"was"," worth"):"In ----, $--- will be worth",(0,r.jsx)("span",{className:c().hideMobileTooltip,children:(0,r.jsx)(d.A,{id:"finalValue",message:"This is the estimated inflation-adjusted value of your starting amount in the end year."})})]})}),(0,r.jsx)("div",{className:"".concat(c().resultValue," ").concat(c().primary),children:S(x?(null==(e=A.results)?void 0:e.finalInflationAdjustedValue)||0:void 0)})]}),(0,r.jsxs)("div",{className:c().resultBox,children:[(0,r.jsxs)("h4",{className:c().resultSubtitle,children:["Average Inflation Rate:",(0,r.jsx)(d.A,{id:"averageInflationRateTooltip",message:"The average yearly inflation rate required for your future amount to equal your starting amount in value."})]}),(0,r.jsx)("div",{className:"".concat(c().resultValue," ").concat(c().secondary),children:x?"".concat((100*t).toFixed(2),"%"):"--%"})]}),(0,r.jsxs)("div",{className:c().resultBox,children:[(0,r.jsxs)("h4",{className:c().resultSubtitle,children:["Cumulative Inflation Rate:",(0,r.jsx)(d.A,{id:"cumulativeInflationRateTooltip",message:"This is the overall inflation rate between your starting and ending years."})]}),(0,r.jsx)("div",{className:"".concat(c().resultValue," ").concat(c().secondary),children:x?"".concat((100*((null==(a=A.results)?void 0:a.cumulativeInflationRate)||0)).toFixed(2),"%"):"--%"})]}),(0,r.jsx)("div",{className:c().chartsWrapper,children:(0,r.jsx)("div",{className:c().chartsContainer,children:(0,r.jsxs)("div",{className:"".concat(c().chartContainer," ").concat(c().singleChart),children:[(0,r.jsxs)("p",{className:c().chartTitle,children:["Value Over Time",(0,r.jsx)(d.A,{id:"lineChartTooltip",message:"Shows how the purchasing power of your dollar can change over time due to inflation."})]}),o&&(0,r.jsxs)("p",{className:I()(c().chartSubtitle,c().marginTop0),children:["A projected inflation rate of ",p.inflationRate.toFixed(2),"% was used to calculate values from ",R+1," to ",p.targetYear,"."]}),(0,r.jsx)("div",{id:"lineContainer",className:c().lineContainer})]})})}),L]})]})}),(0,r.jsx)(T,{})]})}},63783:e=>{e.exports={relatedLinksContainer:"RelatedLinksModule_relatedLinksContainer__HQb0_",heading:"RelatedLinksModule_heading__cv_JL",linkCard:"RelatedLinksModule_linkCard__r4RP0",clickable:"RelatedLinksModule_clickable__b13NH",embla:"RelatedLinksModule_embla__cbDTg",emblaContainer:"RelatedLinksModule_emblaContainer__Q5cv3",emblaSlide:"RelatedLinksModule_emblaSlide__N6hx_",emblaDots:"RelatedLinksModule_emblaDots__b0EuI",emblaDot:"RelatedLinksModule_emblaDot__pFAbP",emblaDotActive:"RelatedLinksModule_emblaDotActive__Rk3cN"}},64151:(e,a,t)=>{"use strict";t.d(a,{default:()=>L});var n=t(95155),r=t(12115),s=t(85203),l=t.n(s),i=t(57740),o=t.n(i),c=t(67894),u=t.n(c),d=t(9088);let m=e=>{let{form:a,onCalculate:t}=e;return(0,n.jsxs)("form",{className:l()(o().formInputsContainer,u().inputsHalf),onSubmit:e=>{e.preventDefault(),t()},children:[(0,n.jsx)(d.A,{...a.getInputGroupProps("startingAmount")}),(0,n.jsx)(d.A,{...a.getInputGroupProps("additionalContributions")}),(0,n.jsx)(d.A,{...a.getInputGroupProps("contributionFrequency")}),(0,n.jsx)(d.A,{...a.getInputGroupProps("rateOfReturn")}),(0,n.jsx)(d.A,{...a.getInputGroupProps("yearsToGrow")}),(0,n.jsx)("button",{type:"submit",className:o().calculateButton,children:"Calculate"})]})};var h=t(20063),p=t(57902),g=t(14538),v=t(73866),f=t(8036),x=t(78535),y=t(42302);let b={utm_source:v.av,utm_campaign:v.lu},j=e=>{let{calculated:a,results:t,formatCurrency:s,yearsToGrow:i,errorMessage:c}=e,d=(0,h.usePathname)(),m=(0,r.useMemo)(()=>(0,g.f6)(v.Jv,b,d),[d]),j=a?s(t.valueWithoutAdvisor):"$--",N=a?s(t.incrementalWithAdvisor):"$--";return(0,n.jsxs)("section",{className:u().outputsContainer,"aria-label":"Calculator results",children:[(0,n.jsxs)("div",{className:l()(o().resultsContainer,u().resultsPanelGrow),children:[(0,n.jsxs)("div",{className:o().resultBox,children:[(0,n.jsxs)("h3",{className:o().resultTitle,children:[y.N.projectedValueTitle,(0,n.jsx)(p.A,{id:"projected-investment-value",message:y.N.projectedValueTooltip})]}),(0,n.jsx)("output",{className:u().projectedValue,children:j})]}),(0,n.jsx)("div",{className:o().resultBox,children:(0,n.jsxs)("p",{className:u().resultCopy,children:[y.N.incrementalLeadIn," ",(0,n.jsx)("span",{className:u().resultCopyValue,children:N}
1)," over"," ",(0,n.jsxs)("span",{className:u().copyTooltipWrap,children:[i," ",y.N.incrementalYearsSuffix,(0,n.jsx)(p.A,{id:"incremental-returns-with-advisor",message:y.N.incrementalTooltip})]})]})}),c&&(0,n.jsx)("p",{className:o().errorMessage,children:c})]}),a&&(0,n.jsx)("a",{href:m,className:o().ctaWhite,onClick:()=>{(0,f.sx)(x.f.INVESTMENTFAVCTACLICK)},children:"Find an Advisor"})]})};var N=t(13975),C=t(22014),_=t(37240),A=t(16405);let T=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.A,{title:"About This Calculator",children:(0,n.jsx)(n.Fragment,{children:(0,A.Ay)(_.dt.INVESTMENT_FAV.about)})}),(0,n.jsx)(N.A,{title:"Assumptions",children:(0,n.jsx)(n.Fragment,{children:(0,A.Ay)(_.dt.INVESTMENT_FAV.assumptions)})}),(0,n.jsx)(N.A,{children:(0,n.jsx)(C.A,{})})]});var S=t(30235),I=t(41464),w=t(47669);let R={startingAmount:5e3,additionalContributions:100,contributionFrequency:1,rateOfReturn:4,yearsToGrow:10},E="investment-fav-calculator-title",k={defaultInputs:R,constraints:{startingAmount:{label:"Starting Amount",type:"currency",min:0,max:1e8,step:1,tooltipMessage:"Current size of your investments",disabled:!1,error:"",formatMethod:Number.parseFloat},additionalContributions:{label:"Additional Contribution",type:"currency",min:0,max:1e8,step:1,tooltipMessage:"How much more you plan to invest and how often you’ll contribute",disabled:!1,error:"",formatMethod:Number.parseFloat},contributionFrequency:{label:"Contribution Frequency",type:"select",tooltipMessage:"How much more you plan to invest and how often you’ll contribute",options:[{value:52,label:"Weekly"},{value:26,label:"Bi-weekly"},{value:12,label:"Monthly"},{value:2,label:"Semi-annually"},{value:1,label:"Annually"}],disabled:!1,error:"",formatMethod:Number.parseInt},rateOfReturn:{label:"Rate of Return",type:"percentage",min:.25,max:1e3,step:"0.01",tooltipMessage:"Rate at which you expect your investments to grow",disabled:!1,error:"",formatMethod:Number.parseFloat},yearsToGrow:{label:"Years to Grow",type:"number",min:5,max:30,step:1,tooltipMessage:"How long you plan to keep your investments (5 years or more). The calculator illustrates hypothetical outcomes over periods of five years or longer.",disabled:!1,error:"",formatMethod:Number.parseInt}}},M={valueWithoutAdvisor:0,valueWithAdvisor:0,incrementalWithAdvisor:0,withoutAdvisor:I.$,withAdvisor:I.$},L=()=>{var e;let{form:a,api:t,formatCurrency:s}=(0,S.qE)({formConfig:k,defaultResults:M,formatCurrency:e=>null==e?"$--":"$".concat(Math.round(e).toLocaleString())}),[i,c]=(0,r.useState)(!1),[d,h]=(0,r.useState)(R.yearsToGrow),p=async()=>{(0,f.sx)(x.f.INVESTMENTFAVCALCSUBMIT,{"input1-starting-amount":a.inputs.startingAmount,"input2-contribution":a.inputs.additionalContributions,"input3-compound":a.inputs.contributionFrequency,"input4-return-rate":a.inputs.rateOfReturn,"input5-years":a.inputs.yearsToGrow}),await t.calculate(()=>(0,w.H)(a.inputs))&&(c(!0),h(a.inputs.yearsToGrow))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:l()(o().calculatorParent,u().parentWide),children:(0,n.jsxs)("section",{className:o().calculatorContainer,"aria-labelledby":E,children:[(0,n.jsx)("h2",{id:E,className:o().calculatorTitle,children:"Investment Calculator"}),(0,n.jsx)("p",{className:o().calculatorDescription,children:"Calculate how much the money you invest can potentially grow over time."}),(0,n.jsxs)("div",{className:o().formLayout,children:[(0,n.jsx)(m,{form:a,onCalculate:p}),(0,n.jsx)(j,{calculated:i,results:t.results,formatCurrency:s,yearsToGrow:d,errorMessage:null==(e=t.errorResults)?void 0:e.message})]})]})}),(0,n.jsx)(T,{})]})}},64321:e=>{e.exports={breadcrumbs:"Breadcrumbs_breadcrumbs__Eid_1",categoryBreadcrumbs:"Breadcrumbs_categoryBreadcrumbs__T4RVE",divider:"Breadcrumbs_divider__ZYSjx"}},66950:e=>{e.exports={onboardingSlot:"InvestmentCalculatorCta_onboardingSlot__x4JbY",block:"InvestmentCalculatorCta_block__T5B2y",icon:"InvestmentCalculatorCta_icon__ujSoR",button:"InvestmentCalculatorCta_button__9bI_k",heading:"InvestmentCalculatorCta_heading__ieEEF",header:"InvestmentCalculatorCta_header__9Ukbx",subheader:"InvestmentCalculatorCta_subheader__zMJ5l"}},67233:e=>{e.exports={tableWrapper:"TwoColumnTable_tableWrapper__KRpko",columnHeaders:"TwoColumnTable_columnHeaders__MfN5H",columnHeader:"TwoColumnTable_columnHeader__ho5Zi",table:"TwoColumnTable_table__gBg5V",cell:"TwoColumnTable_cell__3KYIL",cellAlt:"TwoColumnTable_cellAlt__Zw_a3 TwoColumnTable_cell__3KYIL",label:"TwoColumnTable_label__evwOY",value:"TwoColumnTable_value__uaOAu"}},67672:(e,a,t)=>{"use strict";t.d(a,{default:()=>Q});var n=t(95155),r=t(12115),s=t(85203),l=t.n(s),i=t(41464),o=t(95406),c=t(57740),u=t.n(c),d=t(9088),m=t
1(57902);let h={startingAmount:5e3,additionalContributions:100,contributionFrequency:1,rateOfReturn:4,yearsToGrow:10},p={startingAmount:{label:"Starting Amount",type:"currency",min:0,max:1e8,tooltipMessage:"Current size of your investments",step:1,disabled:!1,error:"",formatMethod:Number.parseFloat},additionalContributions:{label:"Additional Contribution",type:"currency",min:0,max:1e8,tooltipMessage:"How much more you plan to invest",step:1,disabled:!1,error:"",formatMethod:Number.parseFloat},contributionFrequency:{label:"Contribution Frequency",type:"select",tooltipMessage:"How often you'll contribute",options:[{value:52,label:"Weekly"},{value:26,label:"Bi-Weekly"},{value:12,label:"Monthly"},{value:2,label:"Semi-Annually"},{value:1,label:"Annually"}],disabled:!1,error:"",formatMethod:Number.parseInt},rateOfReturn:{label:"Rate of Return",type:"percentage",min:.25,max:100,disabled:!1,error:"",step:"0.01",tooltipMessage:"Rate at which you expect your investments to grow",formatMethod:Number.parseFloat},yearsToGrow:{label:"Years to Grow",type:"number",min:1,max:30,step:1,disabled:!1,error:"",tooltipMessage:"How long you plan to keep your investments",formatMethod:Number.parseInt}};var g=t(78535),v=t(8036),f=t(6311),x=t.n(f),y=t(3540),b=t(30235),j=t(66950),N=t.n(j);let C=()=>(0,n.jsxs)("div",{className:N().block,children:[(0,n.jsx)("div",{className:N().icon,children:(0,n.jsx)("img",{src:"/cds-images/calculators/light-bulb.svg",alt:"Light bulb"})}),(0,n.jsxs)("div",{className:N().heading,children:[(0,n.jsx)("div",{className:N().header,children:"Ready for the next step?"}),(0,n.jsx)("div",{className:N().subheader,children:"A financial advisor may be able to help you build an investment plan."})]}),(0,n.jsx)("a",{href:"".concat("https://smartasset.com","/retirement/find-a-financial-planner?utm_source=smartasset&utm_campaign=investmentcalcsubtext"),className:N().button,children:"Find an Advisor"})]});var _=t(13975),A=t(22014),T=t(37240),S=t(78824),I=t(16405);let w=e=>{let{showFavCopy:a=!1}=e;return a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.A,{title:"About This Calculator",children:(0,n.jsx)(n.Fragment,{children:(0,I.Ay)(T.dt.INVESTMENT_FAV.about)})}),(0,n.jsx)(_.A,{title:"Assumptions",children:(0,n.jsx)(n.Fragment,{children:(0,I.Ay)(T.dt.INVESTMENT_FAV.assumptions)})}),(0,n.jsx)(_.A,{children:(0,n.jsx)(A.A,{})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.A,{title:"About This Calculator",content:T.dt[S.c.INVESTMENT].about}),(0,n.jsx)(_.A,{title:"Assumptions",children:(0,n.jsx)(n.Fragment,{children:(0,I.Ay)(T.dt[S.c.INVESTMENT].assumptions)})}),(0,n.jsx)(_.A,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{children:"This hypothetical example is for illustrative purposes only and does not represent an actual client or specific security. Actual results will vary."}),(0,n.jsx)("p",{children:"This is not an offer to buy or sell any security or interest. All investing involves risk, including loss of principal. Working with an adviser may come with potential downsides such as payment of fees (which will reduce returns). Past performance is not a guarantee of future results. There are no guarantees that working with an adviser will yield positive returns. The existence of a fiduciary duty does not prevent the rise of potential conflicts of interest."}),(0,n.jsx)("p",{children:"Articles, opinions, and tools are for general information only and are not intended to provide specific advice or recommendations for any individual. We suggest that you consult your accountant, tax, or legal advisor concerning your individual situation."}),(0,n.jsx)("p",{children:'SmartAsset.com is not intended to provide legal advice, tax advice, accounting advice or financial advice (Other than referring users to third party advisers registered or chartered as fiduciaries ("Adviser(s)") with a regulatory body in the United States). Articles, opinions, and tools are for general information only and are not intended to provide specific advice or recommendations for any individual. We suggest that you consult your accountant, tax, or legal advisor concerning your individual situation.'}),(0,n.jsx)("p",{children:"It is not possible to invest directly in an index. Exposure to an asset class represented by an index may be available through investable instruments based on that index. Indexes do not pay transaction charges or management fees."}),(0,n.jsx)("p",{children:"The above summary/prices/quote/statistics have been obtained from sources we believe to be reliable, but we cannot guarantee their accuracy or c
1ompleteness."})]})})]})};var R=t(68968),E=t(14999),k=t(47669),M=t(4194),L=t.n(M),B=t(42302);let F=e=>{let{incrementalValue:a,years:t}=e;return(0,n.jsxs)("p",{className:L().advisorValue,"data-testid":"investment-advisor-value-output",children:[B.N.incrementalLeadIn," ",(0,n.jsx)("span",{className:L().value,children:a})," over"," ",(0,n.jsxs)("span",{className:L().tooltipWrap,children:[t," ",B.N.incrementalYearsSuffix,(0,n.jsx)(m.A,{id:"investment-incremental-returns-with-advisor",message:B.N.incrementalTooltip})]})]})},O="investmentGrowthLineContainer",D=(e,a,t)=>({linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,(0,y.j5)(e,a)],[1,(0,y.j5)(e,t)]]}),P=e=>{let{withoutAdvisor:a,withAdvisor:t}=e,s=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{let e=new Date().getFullYear(),n=(0,y.fS)(((e,a,t)=>[{type:"area",name:B.N.withAdvisorSeriesName,color:y.OK.GREEN,fillColor:D(y.OK.GREEN,.5,.1),lineWidth:2,marker:{enabled:!1},data:a.map(e=>[t+e.year,Math.round(e.endBalance)])},{type:"area",name:B.N.withoutAdvisorSeriesName,color:y.OK.BLUE,fillColor:D(y.OK.BLUE,.6,.15),lineWidth:2,marker:{enabled:!1},data:e.map(e=>[t+e.year,Math.round(e.endBalance)])}])(a,t,e),{chart:{type:"area",height:280,spacingBottom:0,style:{fontFamily:"proxima-nova, sans-serif"}},xAxis:{tickInterval:5,labels:{style:{fontSize:"0.75rem"},formatter(){return String(this.value)}}},plotOptions:{area:{marker:{enabled:!1}}},legend:{enabled:!0,events:{itemClick:()=>!1},itemStyle:{fontFamily:"proxima-nova, sans-serif",fontSize:"0.75rem",fontWeight:"500",cursor:"default"},itemHoverStyle:{cursor:"default"}},tooltip:{useHTML:!0,shared:!0,formatter(){var e;let a=(null!=(e=this.points)?e:[]).map(e=>{var a;return"<div>".concat(e.series.name,": <strong>$").concat(Math.round(null!=(a=e.y)?a:0).toLocaleString(),"</strong></div>")}).join("");return"<div><div><strong>In the year ".concat(this.x,"</strong></div>").concat(a,"</div>")}}}),r=Array.isArray(n.yAxis)?n.yAxis[0]:n.yAxis,l={...n,yAxis:{...r,labels:{...null==r?void 0:r.labels,style:{fontSize:"0.75rem"}}}};s.current?s.current.update(l,!0,!0):s.current=x().chart(O,l)},[a,t]),(0,r.useEffect)(()=>(0,y.k7)(O,()=>s.current),[]),(0,r.useEffect)(()=>()=>{var e;null==(e=s.current)||e.destroy(),s.current=void 0},[]),(0,n.jsx)("div",{id:O,className:u().lineContainer,"data-testid":"investment-growth-line-chart"})};var G=t(38561),V=t(97687),Y=t(24294),U=t(91028),H=t(39106),W=t(97320),q=t(15944),K=t(73866);let z=new Date().getFullYear(),$=[],J=e=>"string"==typeof e&&""!==e?e:void 0,X={defaultInputs:h,constraints:p},Z=i.$,Q=()=>{var e,a,t,s,i,c,p,f,j,_,A;let[T,I]=(0,r.useState)(h.yearsToGrow),[M,L]=(0,r.useState)(!1),{form:O,api:D,formatCurrency:Q}=(0,b.qE)({formConfig:X,defaultResults:Z,formatCurrency:e=>null==e?"$--":"$".concat(Math.round(e).toLocaleString())}),{registerSubmit:ee,element:ea,surfaceRef:et}=(0,R.R)(S.c.INVESTMENT),en=(0,r.useRef)(void 0),er=(0,r.useRef)(void 0),[es,el,ei]=(0,E.A2)("con-1289_fav_calculations_to_standalone_investment_calc",{},{overrideAttributes:{url:window.location.href}}),[eo,ec]=(0,r.useState)(!1);(0,r.useEffect)(()=>{ec(!0)},[]);let eu=eo&&(el||ei),ed=null==es?void 0:es.variables,em=!!(null==es?void 0:es.enabled)&&(null==es?void 0:es.variationKey)!=="off",eh=eu&&em&&!!(null==ed?void 0:ed.display_fav_secondary_output),ep=eu&&em&&!!(null==ed?void 0:ed.display_growth_line_chart),eg=eh||ep,[ev,ef]=(0,r.useState)(null),{setFieldConfig:ex}=O;(0,r.useEffect)(()=>{eg&&ex("yearsToGrow",{min:B.c,tooltipMessage:B.N.yearsToGrowTooltip})},[eg]);let ey=(e=>{let a="string"==typeof e?Number(e):e;return"number"==typeof a&&Number.isFinite(a)?a:void 0})(null==ed?void 0:ed.trigger_minimum),[eb,ej]=(0,r.useState)(null),eN=null!==eb&&eb.startingAmount>=(null!=ey?ey:1/0),eC=eu&&em&&eN,e_=!!(null==ed?void 0:ed.display_popup),eA=(null==ed?void 0:ed.redirect_on_click)===!1,eT=(0,U.ie)(ed),[eS,eI]=(0,r.useState)(!1),ew=(0,r.useRef)(null),eR=(0,r.useRef)(!1),[eE]=(0,E.jt)(),{isSubmittingMatches:ek,confirmationUrl:eM,submitError:eL,handleSubmit:eB,abort:eF}=(0,H.G)({effectiveInputs:null!=eb?eb:O.inputs,openInNewTab:eA,resolveCurrentSavingsBracket:(e,a)=>""!==e.assetTier?e.assetTier:(0,q.R)(a.startingAmount),submitEventName:g.f.INVESTMENTONBOARDINGSUBMIT,utmData:K.UH}),eO=(0,r.useCallback)((e,a)=>{let t=[{type:"pie",name:"Amount",data:[{y:Math.round(e||0),color:y.OK.ORANGE,name:"Starting Amount"},{y:Math.round((null==a?void 0:a.totalContributions)||0),color:y.OK.BLUE,name:"Total Contributions"},{y:Math.round((null==a?void 0:a.totalInterestEarned)||0),color:y.OK.GREEN,name:"Total Interest Earned"}]}];if(en.current){let e=(0,y.BY)(t);e.tooltip&&(e.tooltip.enabled=!0),en.current.update(e)}else en.current=x().chart("pieContainer",(0,y.BY)(t))},[]),eD=(0,r.useCallback)((e,a,t)=>{var n;if(!(null==a||null==(n=a.yearlyBreakdown)?void 0:n.length))return;let r=a.yearlyBreakdown.map(()=>Math.round(e)),s=a.yearlyBreakdown.map(e=>Math.round(e.contributionsToDate)),l=a.yearlyBreakdown.map(e=>Math.round(e.interestEarnedToDate)),i=a.yearlyBreakdown.map(e=>Math.round(e.endBalance)),o=[{type:"column",name:"Starting Amount",data:r,color:y.OK.ORANGE},{type:"column",name:"Total Contributions",data:s,color:y.OK.BLUE},{type:"column",name:"Total Interest Earned",data:l,color:y.OK.GREEN},{type:"column",name:"End Balances",data:i,visible:!1}];if(er.current)if(t)er.current.destroy(),er.current=x().chart("barContainer",(0,y.g2)(o));else{let e=(0,y.g2)(o,{yAxis:{min:0,max:void 0}});e.tooltip&&(e.tooltip.enabled=!0),er.current.update(e)}else er.current=x().chart("barContainer",(0,y.g2)(o))},[]),eP=(0,r.useCallback)((e,a,t)=>{a&&(eO(e,a),ep||eD(e,a,t))},[eO,eD,ep]),eG=(0,r.useCallback)(async e=>{if(!eg)return ef(null),D.calculate(()=>(0,o.i)(e));let a=null,t=await D.calculate(async()=>{let t=await (0,k.H)(e);return t.success?(a=t.result,{success:!0,result:t.result.withoutAdvisor}):t});return ef(t?a:null),t},[D,eg]),eV=(0,r.useCallback)(async e=>{let a=await eG(e);return a&&(ej(e),I(e.yearsToGrow),L(!0),ee(),(0,v.sx)(g.f.INVESTMENTCALCSUBMISSION,{"input1-starting-amount":e.startingAmount,"input2-additional-contributions":e.additionalContributions,"input3-contribution-frequency":e.contributionFrequency,"input4-rate-of-return":e.rateOfReturn,"input5-years-to-grow":e.yearsToGrow,"output1-final-value":a.finalValue}
1),eP(e.startingAmount,a,!M)),a},[eG,eP,I,M,ee]);(0,r.useEffect)(()=>{if(eu&&!ep&&!er.current){let e=Array(10).fill(0),a=[{type:"column",name:"Starting Amount",data:e,color:y.OK.ORANGE},{type:"column",name:"Total Contributions",data:e,color:y.OK.BLUE},{type:"column",name:"Total Interest Earned",data:e,color:y.OK.GREEN},{type:"column",name:"End Balances",data:e,visible:!1}],t=(0,y.g2)(a,{yAxis:{min:0,max:1e5,endOnTick:!1,startOnTick:!0,...y.q5},tooltip:{enabled:!1}});er.current=x().chart("barContainer",t)}},[eu,ep]),(0,r.useEffect)(()=>{ep&&er.current&&(er.current.destroy(),er.current=void 0)},[ep]),(0,r.useEffect)(()=>()=>{var e,a;null==(e=en.current)||e.destroy(),en.current=void 0,null==(a=er.current)||a.destroy(),er.current=void 0},[]);let eY=async e=>{e.preventDefault(),O.getFirstErrorField()||await eV(O.inputs)};(0,r.useEffect)(()=>{let e;if(!eg||ev||!eb)return;let a=!1,t=a=>new Promise(t=>{e=setTimeout(t,a)});return(async()=>{for(let e=0;e<3;e+=1){if(e>0&&await t(2e3),a)return;let n=await (0,k.H)(eb).catch(()=>null);if(a)return;if(null==n?void 0:n.success)return void ef(n.result)}console.error("FAV backfill failed after retries",{logger_name:"InvestmentCalculatorComponent"})})().catch(()=>void 0),()=>{a=!0,clearTimeout(e)}},[eg,ev,eb]),(0,W.A)(ew,()=>{eC&&(eR.current||(eR.current=!0,(0,v.sx)(g.f.INVESTMENTONBOARDINGDISPLAY),eE(g.f.INVESTMENTONBOARDINGDISPLAY)))},!0,[eC]);let eU=(0,n.jsxs)("div",{className:l()(u().chartLegend,ep&&u().chartLegendStacked),children:[(0,n.jsxs)("div",{className:u().legendItem,children:[(0,n.jsxs)("div",{className:u().legendLabel,children:[(0,n.jsx)("div",{className:u().legendColor,style:{backgroundColor:y.OK.ORANGE}}),(0,n.jsx)("span",{children:"Starting Amount"})]}),(0,n.jsx)("span",{className:u().legendAmount,children:Q(O.inputs.startingAmount)})]}),(0,n.jsxs)("div",{className:u().legendItem,children:[(0,n.jsxs)("div",{className:u().legendLabel,children:[(0,n.jsx)("div",{className:u().legendColor,style:{backgroundColor:y.OK.BLUE}}),(0,n.jsx)("span",{children:"Total Contributions"})]}),(0,n.jsx)("span",{className:u().legendAmount,children:Q(M?(null==(e=D.results)?void 0:e.totalContributions)||0:void 0)})]}),(0,n.jsxs)("div",{className:u().legendItem,children:[(0,n.jsxs)("div",{className:u().legendLabel,children:[(0,n.jsx)("div",{className:u().legendColor,style:{backgroundColor:y.OK.GREEN}}),(0,n.jsx)("span",{children:"Total Interest Earned"})]}),(0,n.jsx)("span",{className:u().legendAmount,children:Q(M?(null==(a=D.results)?void 0:a.totalInterestEarned)||0:void 0)})]})]}),eH={header:null!=(p=J(null==ed?void 0:ed.cta_header))?p:"",subheader:J(null==ed?void 0:ed.cta_subtext),buttonCopy:null!=(f=J(null==ed?void 0:ed.button_copy))?f:"",injectedValue:null!=(j=null==(t=D.results)?void 0:t.finalValue)?j:0,injectedTokens:{ADDVALUE:null==ev?void 0:ev.incrementalWithAdvisor,YEARS:T}};return(0,n.jsxs)("div",{className:l()(u().calculatorParent,u().fullWidthCalculator,u().standaloneCalculator),children:[(0,n.jsx)("div",{ref:et,className:u().calculatorContainer,children:(0,n.jsxs)("div",{className:u().formLayout,children:[(0,n.jsxs)("form",{onSubmit:eY,className:u().calculatorForm,children:[(0,n.jsxs)("div",{className:u().formInputsContainer,children:[(0,n.jsx)(d.A,{...O.getInputGroupProps("startingAmount")}),(0,n.jsx)(d.A,{...O.getInputGroupProps("additionalContributions")}),(0,n.jsx)(d.A,{...O.getInputGroupProps("contributionFrequency")}),(0,n.jsx)(d.A,{...O.getInputGroupProps("rateOfReturn")}),(0,n.jsx)(d.A,{...O.getInputGroupProps("yearsToGrow")})]}),(0,n.jsx)("button",{type:"submit",className:u().calculateButton,disabled:D.isCalculating,children:D.isCalculating?(0,n.jsx)("i",{className:"fa fa-circle-notch fa-spin"}):"Calculate"}),D.errorResults&&(0,n.jsx)("p",{className:u().errorMessage,children:D.errorResults.message})]}),(0,n.jsxs)("div",{className:u().resultsContainer,children:[(0,n.jsxs)("div",{className:u().resultBox,children:[(0,n.jsx)("label",{children:(0,n.jsxs)("h3",{className:u().resultTitle,children:[eg?B.N.projectedValueTitle:"This investment will be worth:",(0,n.jsx)("span",{className:u().hideMobileTooltip,children:(0,n.jsx)(m.A,{id:"investmentTotal",message:eg?B.N.projectedValueTooltip:"Based on your inputs, total amount your investment could grow to"})})]})}),(0,n.jsx)("div",{className:"".concat(u().resultValue," ").concat(u().primary),children:Q(M?(null==(s=D.results)?void 0:s.finalValue)||0:void 0)}),eh&&(0,n.jsx)(F,{incrementalValue:Q(M&&ev?ev.incrementalWithAdvisor:void 0),years:T})]}),(0,n.jsxs)("div",{className:u().chartsWrapper,children:[(0,n.jsxs)("div",{className:l()(u().chartsContainer,ep&&u().chartsContainerTight),
1children:[(0,n.jsxs)("div",{className:u().chartContainer,children:[(0,n.jsxs)("span",{className:l()(u().chartTitle,u().chartTitleGray),children:["Investment Balance at Year ",M?z+T:"----",(0,n.jsx)(m.A,{id:"pieChartTooltip",message:"The sum of the starting amount plus total contributions plus total interest earned"})]}),(0,n.jsx)("div",{id:"pieContainer",className:l()(u().pieContainer,ep&&u().pieContainerTall)}),ep&&eU]}),(0,n.jsxs)("div",{className:u().chartContainer,children:[(0,n.jsxs)("span",{className:l()(u().chartTitle,u().chartTitleGray),children:[B.N.growthChartTitle,(0,n.jsx)(m.A,{id:"barChartTooltip",message:ep?B.N.growthChartTooltip:"Annualized growth trends over your chosen time frame"})]}),ep?(0,n.jsx)(P,{withoutAdvisor:null!=(_=null==ev||null==(i=ev.withoutAdvisor)?void 0:i.yearlyBreakdown)?_:$,withAdvisor:null!=(A=null==ev||null==(c=ev.withAdvisor)?void 0:c.yearlyBreakdown)?A:$}):(0,n.jsx)("div",{id:"barContainer",className:u().barContainer})]})]}),!ep&&eU]}),eC?(0,n.jsx)("div",{ref:ew,className:N().onboardingSlot,children:(0,n.jsx)(G.A,{config:eH,testId:"investment-onboarding-cta",showInlineForm:!e_&&eS,onCtaClick:()=>{(0,v.sx)(g.f.INVESTMENTONBOARDINGCLICK),eE(g.f.INVESTMENTONBOARDINGCLICK),eI(!0)},onFormSubmit:eB,isSubmittingForm:ek,confirmationUrl:eM,submitError:eL,inputClickEventName:g.f.INVESTMENTONBOARDINGINPUTCLICK,inputNextEventName:g.f.INVESTMENTONBOARDINGINPUTNEXT,formOptions:eT})}):(0,n.jsx)(C,{}),eC&&e_&&eS&&(0,n.jsx)(Y.A,{isOpen:eS,onClose:()=>{(0,v.sx)(g.f.INVESTMENTONBOARDINGEXIT),eE(g.f.INVESTMENTONBOARDINGEXIT),eF(),eI(!1)},children:(0,n.jsx)(V.A,{variant:"modal",onSubmit:eB,isSubmitting:ek,confirmationUrl:eM,submitError:eL,buttonCopy:eH.buttonCopy,inputClickEventName:g.f.INVESTMENTONBOARDINGINPUTCLICK,inputNextEventName:g.f.INVESTMENTONBOARDINGINPUTNEXT,formOptions:eT})}),ea]})]})}),(0,n.jsx)(w,{showFavCopy:eg})]})}},67894:e=>{e.exports={parentWide:"InvestmentFavCalculator_parentWide__XQtEW",inputsHalf:"InvestmentFavCalculator_inputsHalf__f8k9x",outputsContainer:"InvestmentFavCalculator_outputsContainer__xAmzZ",resultsPanelGrow:"InvestmentFavCalculator_resultsPanelGrow__1ztay",projectedValue:"InvestmentFavCalculator_projectedValue__E5Oq0 SharedCalculatorStyles_resultValue__PL_q2 SharedCalculatorStyles_primary__X3hq3",resultsPanel:"InvestmentFavCalculator_resultsPanel___BgsW",resultCopy:"InvestmentFavCalculator_resultCopy__qK2_m",resultCopyValue:"InvestmentFavCalculator_resultCopyValue__IqBFd",copyTooltipWrap:"InvestmentFavCalculator_copyTooltipWrap__B4Vak",errorMessage:"InvestmentFavCalculator_errorMessage__smsvm"}},67989:(e,a,t)=>{"use strict";let n,r,s;t.d(a,{default:()=>al});var l=t(95155),i=t(12115),o=t(15279),c=t(41521),u=t(35068),d=t(85203),m=t.n(d),h=t(14999),p=t(73866),g=t(91141),v=t(80909),f=t(48798),x=t(33086),y=t(8036),b=t(78535),j=t(57740),N=t.n(j),C=t(1534),_=t.n(C),A=t(15239);let T=["Retirement savings projections","An overview of potential retirement income by account type","Estimates of how long savings may last under different scenarios","General resources to help inform retirement planning"],S=()=>(0,l.jsxs)("div",{className:_().headerContainer,children:[(0,l.jsx)("h3",{className:_().headerTitle,children:"Your comprehensive analysis will include:"}),(0,l.jsx)("ul",{className:_().checkList,children:T.map((e,a)=>(0,l.jsxs)("li",{className:_().checkItem,children:[(0,l.jsx)(A.default,{src:"/cds-images/calculators/checkmark.svg",alt:"",width:24,height:24,className:_().checkIcon}),(0,l.jsx)("span",{children:e})]},a))})]});var I=t(85415),w=t(55645),R=t(69934),E=t(79225),k=t(27736),M=t(25546),L=t(19070),B=t(9614),F=t(57902),O=t(58805),D=t.n(O),P=t(26800),G=t.n(P);let V=e=>{let{sectionLabel:a,tooltipMessage:t,accountOptions:n,maxAccounts:r}=e,{values:s,errors:i,touched:o,setFieldValue:u,setFieldTouched:d}=(0,c.j7)(),m=i.retirementAccounts,h=o.retirementAccounts,p=new Set(n.map(e=>e.value)),g=s.retirementAccounts.map((e,a)=>({account:e,index:a})).filter(e=>{let{account:a}=e;return p.has(a.accountType)}),v=a.toLowerCase().replace(/\s+/g,"-");return(0,l.jsxs)("div",{className:G().accountsSection,children:[(0,l.jsxs)("div",{className:G().sectionHeader,children:[(0,l.jsx)("span",{className:G().sectionLabel,children:a}),(0,l.jsx)(F.A,{id:"".concat(v,"-tooltip"),message:t})]}),(0,l.jsx)(c.ED,{name:"retirementAccounts",children:e=>{let{push:a,remove:t}=e;return(0,l.jsxs)(l.Fragment,{children:[g.map(e=>{var a,r;let{account:s,index:i}=e,o=(null==h||null==(a=h[i])?void 0:a.balance)&&(null==m||null==(r=m[i])?void 0:r.balance)?m[i].balance:void 0;return(0,l.jsxs)("div",{className:G().accountRow,children:[(0,l.jsx)("div",{className:"".concat(D().inputGroup," ").concat(G().accountTypeWrapper),children:(0,l.jsx)("div",{className:D().inputContainer,children:(0,l.jsx)(B.A,{id:"retirementAccounts[".concat(i,"].accountType"),name:"retirementAccounts[".concat(i,"].accountType"),value:s.accountType,onCh
1ange:e=>u("retirementAccounts[".concat(i,"].accountType"),e.target.value),onBlur:()=>d("retirementAccounts[".concat(i,"].accountType"),!0),options:n,error:void 0,styles:D()})})}),(0,l.jsx)("div",{className:"".concat(D().inputGroup," ").concat(G().balanceWrapper),children:(0,l.jsxs)("div",{className:"".concat(D().inputContainer," ").concat(o?D().hasError:""),children:[(0,l.jsx)(L.A,{type:"currency",id:"retirementAccounts[".concat(i,"].balance"),name:"retirementAccounts[".concat(i,"].balance"),value:s.balance,onChange:e=>u("retirementAccounts[".concat(i,"].balance"),Number(e.target.value)),onBlur:()=>d("retirementAccounts[".concat(i,"].balance"),!0),error:o,styles:D()}),o&&(0,l.jsx)("p",{className:D().error,children:o})]})}),(0,l.jsx)("button",{type:"button",onClick:()=>t(i),className:G().removeButton,"aria-label":"Remove account",children:(0,l.jsx)("i",{className:"fa fa-trash"})})]},i)}),g.length<r&&(0,l.jsx)("button",{type:"button",className:G().addButton,onClick:()=>a({accountType:n[0].value,balance:0}),children:"+ Add Account Balance"})]})}})]})};var Y=t(3452),U=t.n(Y);let H=e=>{let{sectionLabel:a,tooltipMessage:t,typeOptions:n,annualAmount:r,yearsOfPension:s,lumpSumAmount:i,maxPensions:o}=e,{values:u,errors:d,touched:m,setFieldValue:h,setFieldTouched:p}=(0,c.j7)(),g=d.pension,v=m.pension;return(0,l.jsxs)("div",{className:U().pensionSection,children:[(0,l.jsxs)("div",{className:U().sectionHeader,children:[(0,l.jsx)("span",{className:U().sectionLabel,children:a}),(0,l.jsx)(F.A,{id:"pension-tooltip",message:t})]}),(0,l.jsx)(c.ED,{name:"pension",children:e=>{let{push:a,remove:t}=e;return(0,l.jsxs)(l.Fragment,{children:[u.pension.map((e,a)=>{var o,c,u,d,m,f;let x=null!=(m=e.type)?m:"ANNUITY",y=(null==v||null==(o=v[a])?void 0:o.value)&&(null==g||null==(c=g[a])?void 0:c.value)?g[a].value:void 0,b=(null==v||null==(u=v[a])?void 0:u.years)&&(null==g||null==(d=g[a])?void 0:d.years)?g[a].years:void 0;return(0,l.jsxs)("div",{className:U().pensionEntry,children:[(0,l.jsxs)("div",{className:U().typeRow,children:[(0,l.jsx)("div",{className:"".concat(D().inputGroup," ").concat(U().typeSelectWrapper),children:(0,l.jsx)("div",{className:D().inputContainer,children:(0,l.jsx)(B.A,{id:"pension[".concat(a,"].type"),name:"pension[".concat(a,"].type"),value:x,onChange:e=>((e,a)=>{h("pension[".concat(e,"].type"),a),"LUMP_SUM"===a?h("pension[".concat(e,"].years"),null):h("pension[".concat(e,"].years"),0)})(a,e.target.value),onBlur:()=>{},options:n,error:void 0,styles:D()})})}),(0,l.jsx)("button",{type:"button",onClick:()=>t(a),className:U().removeButton,"aria-label":"Remove pension",children:(0,l.jsx)("i",{className:"fa fa-tras
1h"})})]}),"ANNUITY"===x?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:U().subField,children:[(0,l.jsxs)("span",{className:U().subFieldLabel,children:[r.label,(0,l.jsx)(F.A,{id:"pension-annual-amount-".concat(a,"-tooltip"),message:r.tooltipMessage})]}),(0,l.jsx)("div",{className:D().inputGroup,children:(0,l.jsxs)("div",{className:"".concat(D().inputContainer," ").concat(y?D().hasError:""),children:[(0,l.jsx)(L.A,{type:"currency",id:"pension[".concat(a,"].value"),name:"pension[".concat(a,"].value"),value:e.value,onChange:e=>h("pension[".concat(a,"].value"),Number(e.target.value)),onBlur:()=>p("pension[".concat(a,"].value"),!0),error:y,styles:D()}),y&&(0,l.jsx)("p",{className:D().error,children:y})]})})]}),(0,l.jsxs)("div",{className:U().subField,children:[(0,l.jsxs)("span",{className:U().subFieldLabel,children:[s.label,(0,l.jsx)(F.A,{id:"pension-years-".concat(a,"-tooltip"),message:s.tooltipMessage})]}),(0,l.jsx)("div",{className:D().inputGroup,children:(0,l.jsxs)("div",{className:"".concat(D().inputContainer," ").concat(b?D().hasError:""),children:[(0,l.jsx)("input",{type:"number",id:"pension[".concat(a,"].years"),name:"pension[".concat(a,"].years"),value:null!=(f=e.years)?f:0,min:0,step:1,onChange:e=>{let t=e.target.value.replace(/^0+(?=\d)/,"");e.target.value=t,h("pension[".concat(a,"].years"),Number(t))},onBlur:()=>p("pension[".concat(a,"].years"),!0)}),b&&(0,l.jsx)("p",{className:D().error,children:b})]})})]})]}):(0,l.jsxs)("div",{className:U().subField,children:[(0,l.jsxs)("span",{className:U().subFieldLabel,children:[i.label,(0,l.jsx)(F.A,{id:"pension-lump-sum-".concat(a,"-tooltip"),message:i.tooltipMessage})]}),(0,l.jsx)("div",{className:D().inputGroup,children:(0,l.jsxs)("div",{className:"".concat(D().inputContainer," ").concat(y?D().hasError:""),children:[(0,l.jsx)(L.A,{type:"currency",id:"pension[".concat(a,"].value"),name:"pension[".concat(a,"].value"),value:e.value,onChange:e=>h("pension[".concat(a,"].value"),Number(e.target.value)),onBlur:()=>p("pension[".concat(a,"].value"),!0),error:y,styles:D()}),y&&(0,l.jsx)("p",{className:D().error,children:y})]})})]})]},a)}),u.pension.length<o&&(0,l.jsx)("button",{type:"button",className:U().addButton,onClick:()=>a({type:"ANNUITY",value:0,years:0}),children:"+ Add Pension"})]})}})]})};var W=t(94334),q=t(41236),K=t(29219),z=t(76817),$=t(87014);let J=e=>"".concat(p.Bu,"?").concat(new URLSearchParams({utm_source:p.av,utm_campaign:p.E9,utm_content:e})),X=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,y.sx)(b.f.RETIREMENTINPUTPANELCTACLICK,{"panel-name":e,...a})};var Z=t(30849),Q=t(45198),ee=t(73033),ea=t.n(ee),et=t(66131),en=t.n(et);let er=["primaryBirthYear","primaryIncome","filingStatusType","location"],es=["spouseBirthYear","spouseIncome"],el=["retirementAccounts","pension","investableAssets","cashSavings","annualSavingsDetails"],ei=["primaryRetirementAge","desiredRetirementIncome","primarySocialSecurityElectionAge"],eo=["spouseRetirementAge","spouseSocialSecurityElectionAge"],ec=e=>{let{onCalculate:a,locationFieldConfig:t,isCompactLayout:n=!1,isCalculating:r,errorResults:s,showResults:i=!1}=e,{values:o,validateForm:u}=(0,c.j7)(),d=(0,$.E4)(o),m=async()=>{if(r)return;let e=await u();(0,Z.c)(e,(e=>[...er,...e?es:[],...el,...ei,...e?eo:[]])(d))||a()},h=n?(0,l.jsx)("a",{href:J("mobile-single-page"),className:ea().mobileCtaButton,onClick:()=>X("mobile-single-page"),children:"Rather talk to a human? Match with an advisor now"}):null,p=(0,l.jsxs)("div",{className:ea().fieldsContainer,children:[(0,l.jsx)(I.A,{field:"primaryBirthYear",config:z.vJ.primaryBirthYear,...z.Cr.primaryBirthYear,format:{useGrouping:!1}}),(0,l.jsx)(w.A,{field:"primaryIncome",config:z.vJ.primaryIncome}),(0,l.jsx)(R.A,{field:"filingStatusType",config:z.vJ.filingStatusType}),(0,l.jsx)(E.A,{field:"location",config:t})]}),g=(0,l.jsxs)("div",{className:"".concat(ea().fieldsContainer," ").concat(ea().savingsFields),children:[(0,l.jsx)(V,{sectionLabel:z.jq.sectionLabel,tooltipMessage:z.jq.tooltipMessage,accountOptions:z.Ml,maxAccounts:z.jq.maxAccounts}),(0,l.jsx)("hr",{className:ea().fieldDivider}),(0,l.jsx)(V,{sectionLabel:z.rx.sectionLabel,tooltipMessage:z.rx.tooltipMessage,accountOptions:z.Ae,maxAccounts:z.rx.maxAccounts}),(0,l.jsx)("hr",{className:ea().fieldDivider}),(0,l.jsx)(H,{sectionLabel:z.Jy.sectionLabel,tooltipMessage:z.Jy.tooltipMessage,typeOptions:z.Jy.typeOptions,annualAmount:z.Jy.annualAmount,yearsOfPension:z.Jy.yearsOfPension,lumpSumAmount:z.Jy.lumpSumAmount,maxPensions:z.Jy.maxPensions}),(0,l.jsx)("hr",{className:ea().fieldDivider}),(0,l.jsx)(w.A,{field:"investableAssets",config:z.vJ.investableAssets}),(0,l.jsx)(w.A,{field:"cashSavings",config:z.vJ.cashSavings}),(0,l.jsx)(k.A,{config:z.vJ.annualSavingsDetails,fieldKey:"annualSavingsDetails",wrapperClassName:en().inputWrapper,renderSubcopy:Q.I})]}),v=(0,l.jsxs)("div",{className:ea().fieldsContainer,children:[(0,l.jsx)(I.A,{field:"primaryRetirementAge",config:z.vJ.primaryRetirementAge,...z.Cr.primaryRetirementAge}),(0,l.jsx)(k.A,{config:z.vJ.desiredRetirementIncome,fieldKey:"desiredRetirementIncome",wrapperClassName:en().inputWrapper}),(0,l.jsx)(M.A,{}),(0,l.jsx)(q.A,{})]});return(0,l.jsxs)("div",{className:ea().singlePageForm,children:[(0,l.jsxs)("section",{className:ea().singlePageSection,children:[(0,l.jsx)("h2",{className:ea().singlePageSectionHeading,children:"About You"}),p,(0,l.jsx)(W.A,{})]}),(0,l.jsxs)("section",{className:ea().singlePageSection,children:[(0,l.jsx)("h2",{className:ea().singlePageSectionHeading,children:"Your Savings"}),g]}),(0,l.jsxs)("section",{className:ea().singlePageSection,children:[(0,l.jsx)("h2",{className:ea().singlePageSectionHeading,children:"Your Retirement Goals"}),v]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(K.A,{isCalculating:r,onClick:m,errorResults:s}),!i&&h]})]})};var eu=t(6311),ed=t.n(eu),em=t(3540),eh=t(96218),ep=t.n(eh);let eg=[{key:"balance401k",name:"401(k)",color:em.OK.SECONDARY_GREEN},{key:"balanceTraditionalIra",name:"Traditional IRA",color:em.OK.GREEN},{key:"balanceRothIra",name:"Roth IRA",color:em.OK.ORANGE},{key:"balanceInvestment",name:"Other Investments",color:em.OK.BLUE},{key:"balanceCash",name:"Cash",color:em.OK.LIGHT_BLUE}],ev=e=>{let{yearlyBreakdowns:a}=e,t=(0,i.useCallback)(()=>
1{if(!a.length)return;let e=eg.map(e=>{let{key:t,name:n,color:r}=e;return{type:"area",name:n,color:r,data:a.map(e=>({x:e.year,y:Math.round(e[t])})),marker:{enabled:!1}}}),t={chart:{type:"area"},title:{text:"Savings Growth Over Time",style:{color:"#333333",fontSize:"16px"},margin:32},xAxis:{tickInterval:5,labels:{style:{fontSize:"10px"},formatter(){return this.value.toString()}},title:{text:void 0}},plotOptions:{area:{stacking:"normal",marker:{enabled:!1},lineWidth:1}},tooltip:{shared:!0,useHTML:!0,formatter(){let e=this.points||[],a=e.reduce((e,a)=>{var t;return e+(null!=(t=a.y)?t:0)},0),t=e.slice().reverse().map(e=>{var a;return'<div class="'.concat(N().chartTooltipLegend,'">\n              <div class="').concat(N().chartTooltipLegendColor,'" style="background-color:').concat(e.color,';"></div>\n              <span>').concat(e.series.name,": <strong>$").concat(Math.round(null!=(a=e.y)?a:0).toLocaleString(),"</strong></span>\n            </div>")}).join("");return'<div class="'.concat(N().chartTooltip,'">\n            <div class="').concat(N().chartTooltipTitle,'">In the year ').concat(this.x,":</div>\n            <div>Estimated Total Savings: <strong>$").concat(a.toLocaleString(),"</strong></div>\n            <br/>\n            ").concat(t,"\n          </div>")}}};n?n.update((0,em.fS)(e,t),!0,!0):n=ed().chart("yearlyAreaContainer",(0,em.fS)(e,t))},[a]);return(0,i.useEffect)(()=>{t()},[t]),(0,i.useEffect)(()=>()=>{n&&(n.destroy(),n=void 0)},[]),(0,l.jsxs)("div",{className:ep().retirementCalcPanel,children:[(0,l.jsxs)("h3",{className:ep().header,children:[(0,l.jsx)("img",{src:"/cds-images/calculators/chart-square.svg",alt:"",className:ep().headerIcon}),"Retirement Savings Projections"]}),(0,l.jsx)("div",{id:"yearlyAreaContainer",className:ep().chartArea}),(0,l.jsxs)("details",{className:ep().explanationSection,children:[(0,l.jsxs)("summary",{className:ep().explanationToggle,children:["How did we calculate your results?",(0,l.jsx)("i",{className:"fa fa-angle-down fa-center ".concat(ep().caretIcon)})]}),(0,l.jsxs)("div",{className:ep().explanationContent,children:[(0,l.jsx)("p",{children:"We project how your wealth grows from today through your retirement age. We factor in:"}),(0,l.jsxs)("ul",{className:ep().explanationList,children:[(0,l.jsx)("li",{children:"Current pre-tax savings across cash, investments and retirement accounts"}),(0,l.jsx)("li",{children:"Your planned contributions, optimally distributed to maximize tax advantages"}),(0,l.jsx)("li",{children:"Potential investment growth"})]}),(0,l.jsx)("p",{children:"Your future pre-tax savings are automatically allocated to retirement accounts up to annual contribution limits (which we assume increase with inflation), then to taxable accounts."}),(0,l.jsx)("p",{children:"You can adjust planned contributions, pre-retirement growth rates and inflation rate in the assumptions panel under “Current Retirement Plan.”"})]})]})]})};var ef=t(67233),ex=t.n(ef);let ey=e=>"$".concat(e.toLocaleString()),eb=e=>{let{rows:a,formatValue:t=ey,columnHeaders:n}=e;return(0,l.jsxs)("div",{className:ex().tableWrapper,children:[n&&(0,l.jsxs)("div",{className:ex().columnHeaders,children:[(0,l.jsx)("span",{className:ex().columnHeader,children:n[0]}),(0,l.jsx)("span",{className:ex().columnHeader,children:n[1]})]}),(0,l.jsx)("div",{className:ex().table,children:a.map((e,a)=>{let{label:n,value:r}=e;return(0,l.jsxs)("div",{className:Math.floor(a/2)%2==0?ex().cellAlt:ex().cell,children:[(0,l.jsx)("span",{className:ex().label,children:n}),(0,l.jsx)("span",{className:ex().value,children:t(r,n)})]},n)})})]})};var ej=t(31329),eN=t.n(ej);let eC=e=>{let{averageAnnualIncome:a,goalIncome:t,incomeSources:n}=e,s=(0,i.useCallback)(()=>{let e=[{type:"column",name:"Annual Retirement Income",data:[{y:a,color:em.OK.SECONDARY_GREEN,states:{hover:{color:em.OK.SECONDARY_GREEN_LIGHT}},name:"Projected Annual Income (Pre-Tax)"},{y:t,color:em.OK.ORANGE,name:"Desired Annual Income (Pre-Tax)"}]}],n={title:{text:"Average Annual Retirement Income",style:{color:"#333333",fontSize:"16px"},margin:32},xAxis:{categories:["Projected Annual Income (Pre-Tax)","Desired Annual Income (Pre-Tax)"],labels:{enabled:!0,useHTML:!0,overflow:"allow",style:{lineClamp:5,textOverflow:"none"},formatter(){let e=0===("number"==typeof this.pos?this.pos:0)?a:t;return'<div class="'.concat(ep().barLabel,'">').concat(this.value,'<br/><span class="').concat(ep().barLabelAmount,'">
1$').concat(e.toLocaleString(),"</span></div>")}},minorTickLength:0,tickLength:0},plotOptions:{column:{stacking:void 0,dataLabels:{enabled:!1},pointPadding:.05,groupPadding:0}},tooltip:{shared:!1,useHTML:!0,formatter(){var e;let a=null!=(e=this.y)?e:0;return'<div class="'.concat(N().chartTooltip,'">\n            <div>').concat(this.name,": <strong>$").concat(a.toLocaleString(),"</strong></div>\n          </div>")}}};r?r.update((0,em.g2)(e,n)):r=ed().chart("incomeBarContainer",(0,em.g2)(e,n))},[a,t]);(0,i.useEffect)(()=>{s()},[s]),(0,i.useEffect)(()=>(0,em.k7)("incomeBarContainer",()=>r),[]),(0,i.useEffect)(()=>()=>{r&&(r.destroy(),r=void 0)},[]);let o=[{label:"401(k) Accounts",value:n.fourOhOneK},{label:"Cash Savings",value:n.cashSavings},{label:"Traditional IRA",value:n.traditionalIra},{label:"Investments",value:n.investments},{label:"Roth IRA",value:n.rothIra},{label:"Social Security",value:n.socialSecurity}];return(0,l.jsxs)("div",{className:ep().retirementCalcPanel,children:[(0,l.jsxs)("h3",{className:eN().header,children:[(0,l.jsx)("img",{src:"/cds-images/calculators/chart-square.svg",alt:"",className:eN().headerIcon}),"Your Income in Retirement"]}),(0,l.jsxs)("p",{className:eN().subtitle,children:[(0,l.jsxs)("span",{className:eN().subtitleGroup,children:["Projected: ",(0,l.jsxs)("span",{className:eN().subtitleValue,children:["$",a.toLocaleString()]})]})," | ",(0,l.jsxs)("span",{className:eN().subtitleGroup,children:["Goal: ",(0,l.jsxs)("span",{className:eN().subtitleValue,children:["$",t.toLocaleString()]})]})]}),(0,l.jsxs)("details",{className:ep().explanationSection,children:[(0,l.jsxs)("summary",{className:eN().seeMoreToggle,children:["See more",(0,l.jsx)("i",{className:"fa fa-angle-down fa-center ".concat(ep().caretIcon)})]}),(0,l.jsx)("div",{id:"incomeBarContainer",className:"".concat(ep().chartArea," ").concat(eN().chartArea)}),(0,l.jsx)("h4",{className:eN().sourcesTitle,children:"Income Sources in Retirement - First Year Snapshot"}),(0,l.jsx)(eb,{rows:o}),(0,l.jsx)("p",{className:ep().explanationContent,children:'Using your total projected savings, we break your nest egg into an average annual pre-tax "paycheck" that lasts from your first day of retirement until the end of your plan. This pre-tax income estimate combines withdrawals from your personal savings with other sources like Social Security or pensions. Pre-tax annual income uses inflation-adjusted growth rates each year. To add in additional inflation, increase the inflation rate to more than 0%.'})]})]})};var e_=t(59373);let eA="retirement-on-track-have-tooltip",eT="retirement-on-track-need-tooltip",eS=e=>{let{calculatedSavings:a=0,necessarySavings:t=0,averageAnnualIncome:n=0,averageAnnualNeed:r=0}=e,[s,o]=(0,i.useState)("savings"),c=a>=t,u="savings"===s?a:n,d="savings"===s?t:r,h=Number.isFinite(u)?u:0,p=Number.isFinite(d)?d:0;return(0,l.jsxs)("div",{className:m()(ep().retirementCalcPanel,c&&ep().onTrackPanel),children:[(0,l.jsxs)("h2",{className:ep().onTrackHeader,children:[c?"You're on track!":"You're off track.",(0,l.jsx)(A.default,{src:c?"/cds-images/calculators/alarm-clock-time-checkmark.svg":"/cds-images/calculators/alarm-clock-time-cross-delete.svg",alt:"",width:42,he
1ight:42,className:ep().headerIcon})]}),(0,l.jsx)("p",{className:ep().subCopy,children:"The projections below are in pre-tax dollars, and include estimated lifetime Social Security benefits."}),(0,l.jsxs)("div",{className:ep().valuesContainer,children:[(0,l.jsxs)("div",{className:ep().valueColumn,children:[(0,l.jsxs)("div",{className:ep().valueLabel,children:["How much you're projected to have",(0,l.jsx)(F.A,{id:eA,message:"savings"===s?"Your estimated retirement funds, including projected investment growth, pensions and Social Security.":"Your estimated retirement funds (including projected investment growth, pensions and Social Security) divided by projected years in retirement."})]}),(0,l.jsxs)("p",{className:m()(ep().valueAmount,c?ep().haveValueAmount:ep().offTrackHaveValueAmount),"data-tooltip-id":eA,children:["$",Math.round(h).toLocaleString()]})]}),(0,l.jsxs)("div",{className:ep().valueColumn,children:[(0,l.jsxs)("div",{className:ep().valueLabel,children:["How much you'll need",(0,l.jsx)(F.A,{id:eT,message:"savings"===s?"Your desired annual income multiplied by projected years in retirement.":"Your desired annual income."})]}),(0,l.jsxs)("p",{className:m()(ep().valueAmount,ep().needValueAmount),"data-tooltip-id":eT,children:["$",Math.round(p).toLocaleString()]})]})]}),(0,l.jsx)(e_.bL,{value:s,onValueChange:e=>o(e),children:(0,l.jsxs)(e_.B8,{className:ep().tabsList,children:[(0,l.jsx)(e_.l9,{value:"savings",className:ep().tabsTrigger,children:"Total"}),(0,l.jsx)(e_.l9,{value:"income",className:ep().tabsTrigger,children:"Annual Income"})]})}),(0,l.jsxs)("details",{className:ep().explanationSection,children:[(0,l.jsxs)("summary",{className:ep().explanationToggle,children:["How did we calculate your results?",(0,l.jsx)("i",{className:"fa fa-angle-down fa-center ".concat(ep().caretIcon)})]}),(0,l.jsxs)("div",{className:ep().explanationContent,children:[(0,l.jsx)("p",{children:"We compare in pre-tax dollars what you'll have saved by retirement against what you'll need to fund your desired lifestyle through age 95."}),(0,l.jsxs)("ul",{className:ep().explanationList,children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("strong",{children:"What you'll have:"})," In pre-tax dollars, your current savings plus future contributions, grown with potential investment returns and Social Security benefits and adjusted for inflation."]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("strong",{children:"What you'll need:"})," In pre-tax dollars, your desired annual income multiplied by years in retirement, adjusted for inflation."]})]}),(0,l.jsx)("p",{children:"These pre-tax values are based on inflation-adjusted growth rates. To add in additional inflation, increase the inflation rate to more than 0%."})]})]})]})};var eI=t(23857),ew=t.n(eI);let eR=e=>{let{longevityChartBreakdowns:a,primaryBirthYear:t,currentAge:n,retirementAge:r,lifeExpectancy:o,longevityYear:c}=e,u=(0,i.useCallback)(()=>{let e=[{type:"area",name:"Pre-Tax Savings",data:a.map(e=>[e.year-t,Math.max(0,Math.round(e.balance))]),color:"#20A7E2",fillColor:{linearGradient:{x1:0,y1:0,x2:1,y2:0},stops:[[0,"rgba(32, 167, 226, 0.44)"],[1,"rgba(90, 192, 222, 0.44)"]]},lineWidth:2,marker:{enabled:!1},states:{hover:{lineWidth:2}}}],l=new Map(a.map(e=>[e.year-t,e.year])),i={chart:{type:"area"},title:{text:"Your Pre-Tax Retirement Savings Over Time",style:{color:"#333333",fontSize:"16px"},margin:32},xAxis:{min:n,max:o,tickInterval:5,tickLength:0,minorTickLength:0,labels:{style:{fontSize:"10px"}},plotLines:[{value:r,color:"#000000",width:2}]},yAxis:em.q5,tooltip:{useHTML:!0,formatter(){var e,a;let t=this.x,n=null!=(e=l.get(t))?e:t,r=null!=(a=this.y)?a:0;return'<div class="'.concat(N().chartTooltip,'">\n            <div class="').concat(N().chartTooltipTitle,'">In the year ').concat(n,"</div>\n            <div>Estimated Total Savings: <strong>$").concat(Math.round(r).toLocaleString(),"</strong></div>\n          </div>")}}};s?s.update((0,em.fS)(e,i)):s=ed().chart("longevityLineContainer",(0,em.fS)(e,i))},[a,t,n,r,o]);(0,i.useEffect)(()=>{u()},[u]),(0,i.useEffect)(()=>(0,em.k7)("longevityLineContainer",()=>s),[]),(0,i.useEffect)(()=>()=>{s&&(s.destroy(),s=void 0)},[]);let d="Your savings are projected to potentially last through ".concat(null!=c?c:t+o);return(0,l.jsxs)("div",{className:ep().retirementCalcPanel,children:[(0,l.jsxs)("h3",{className:ew().header,children:[(0,l.jsx)("img",{src:"/cds-images/calculators/chart-square.svg",alt:"",className:ep().headerIcon}),"How Long Will Your Money Last?"]}),(0,l.jsx)("p",{className:ew().subtitle,children:d}),(0,l.jsxs)("details",{className:ep().seeMoreSection,children:[(0,l.jsxs)("summary",{className:ep().seeMoreToggle,children:["See more",(0,l.jsx)("i",{className:"fa fa-angle-down fa-center ".concat(ep().caretIcon)})]}),(0,l.jsx)("div",{id:"longevityLineContainer",className:ep().chartArea}),(0,l.jsx)("p",{className:ep().explanationContent,children:"We project how your savings grow from today through your retirement age, then show how long your savings can sustain your desired spending in retirement."}),(0,l.jsxs)("p",{className:ep().explanationContent,children:[(0,l.jsx)("strong",{children:"Through retirement age:"})," Your savings grow based on your current balances, planned contributions, and projected investment returns. You can adjust planned contributions, pre-retirement growth rates and inflation rate in the assumptions panel under “Current Ret
1irement Plan.”"]}),(0,l.jsxs)("p",{className:ep().explanationContent,children:[(0,l.jsx)("strong",{children:"Through life expectancy:"})," Starting at retirement, we draw down your savings each year to cover the gap between your desired annual income and your expected income from Social Security and any pensions. Note that this does not account for taxes, RMDs, or savings growth in retirement. The chart shows the last year your savings remain above zero. You can adjust inflation rate and life expectancy in the assumptions panel under “Current Retirement Plan.”"]})]})]})};var eE=t(68072),ek=t(25778),eM=t.n(ek);let eL=e=>{let{image:a,title:t,description:n,href:r}=e;return(0,l.jsxs)("div",{className:eM().resourceCard,children:[(0,l.jsx)("h5",{className:eM().resourceTitle,children:t}),(0,l.jsxs)("div",{className:eM().resourceCardContent,children:[(0,l.jsx)("p",{className:eM().resourceDescription,children:n}),(0,l.jsx)(A.default,{src:"/cds-images/calculators/".concat(a),alt:"",width:180,height:140,className:eM().resourceImage}),(0,l.jsx)("a",{href:r,className:eM().learnMoreCta,children:"Learn More"})]})]})};var eB=t(53979);let eF=e=>"".concat(p.Jv,"?").concat(new URLSearchParams({utm_source:p.av,utm_campaign:p.E9,utm_content:e})),eO=[{image:"retirement_calc_how_to_choose.png",title:"How to Choose a Financial Advisor",description:"Learn how to find and choose a financial advisor for your goals, including credentials to look for and questions to ask.",href:"https://smartasset.com/retirement/financial-advisor"},{image:"retirement_calc_fav_card.png",title:"Financial Advisor Value Calculator",description:"Calculate how much a financial advisor could potentially impact your net worth.",href:"https://smartasset.com/financial-advisor/financial-advisor-value-calculator"},{image:"retirement_calc_top_fas.png",title:"Top Financial Advisors",description:"Check out our list of the top financial advisor firms in the US.",href:"https://smartasset.com/financial-advisor/us-top-financial-advisors"}],eD=[{image:"retirement_calc_how_to_choose.png",title:"Retirement Planning Guide",description:"Read through our many retirement guides to better understand your planning journey.",href:"https://smartasset.com/retirement/s/planning-for-retirement"},{image:"retirement_calc_fav_card.png",title:"Investment Calculator",description:"Calculate how your annual returns can potentially impact your long-term savings prospects.",href:"https://smartasset.com/investing/investment-calculator"},{image:"retirement_calc_top_fas.png",title:"401(k) Contribution Guide",description:"Learn how to take advantage of the higher contribution limits for 401(k)s and more.",href:"https://smartasset.com/retirement/how-much-should-you-contribute-to-your-401k"}],eP={header:"Ready for the next step?",subtext:"Talk with a financial advisor to review your retirement plan, discuss tax considerations, and explore estate planning strategies.",ctaLink:eF("ontracknextsteps")},eG={header:"Plan your next steps for retirement",subtext:"Talk with a financial advisor to discuss your retirement goals and explore planning strategies.",ctaLink:eF("nextsteps")},eV=e=>{let{isOnTrack:a}=e,[t,n]=(0,eE.A)({loop:!1,align:"start"}),r=(0,eB.B)(1025),s=(0,eB.q)(n),i=a?eP:eG,o=a?eO:eD;return(0,l.jsxs)("div",{className:m()(ep().retirementCalcPanel,eM().nextStepsPanel),children:[(0,l.jsxs)("h3",{className:ep().header,children:[(0,l.jsx)(A.default,{src:"/cds-images/calculators/map-direction-select-square.svg",alt:"",width:24,height:24,className:ep().headerIcon}),"Next Steps"]}),(0,l.jsxs)("div",{className:eM().heroSection,children:[(0,l.jsxs)("div",{className:eM().heroText,children:[(0,l.jsx)("h4",{className:"".concat(ep().subCopy," ").concat(eM().heroHeading),children:i.header}),(0,l.jsx)("p",{className:eM().heroSubtext,children:i.subtext})]}),(0,l.jsx)(A.default,{src:"/cds-images/calculators/retirement_calc_next_steps.png",alt:"",width:325,height:215,className:eM().heroImage}),(0,l.jsx)("a",{href:i.ctaLink,className:eM().findAdvisorCta,children:"Find an Advisor"})]}),(0,l.jsx)("hr",{className:eM().divider}),(0,l.jsx)("h4",{className:eM().resourcesHeading,children:"Helpful Resources"}),(0,l.jsx)("div",{className:eM().resourceCards,children:o.map(e=>
1(0,l.jsx)(eL,{image:e.image,title:e.title,description:e.description,href:e.href},e.title))}),r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:eM().embla,ref:t,children:(0,l.jsx)("div",{className:eM().emblaContainer,children:o.map(e=>(0,l.jsx)("div",{className:eM().emblaSlide,children:(0,l.jsx)(eL,{image:e.image,title:e.title,description:e.description,href:e.href})},e.title))})}),(0,l.jsx)("div",{className:eM().emblaDots,children:o.map((e,a)=>(0,l.jsx)("button",{type:"button","aria-label":"Go to slide ".concat(a+1),className:"".concat(eM().emblaDot," ").concat(a===s?eM().emblaDotActive:""),onClick:()=>null==n?void 0:n.scrollTo(a)},a))})]}):null]})};var eY=t(39106),eU=t(20365),eH=t.n(eU);let eW="".concat(p.Bu,"?").concat(new URLSearchParams({utm_source:p.av,utm_campaign:p.E9,utm_content:"assumptionspanel"})),eq=()=>(0,l.jsxs)("div",{className:eH().content,children:[(0,l.jsxs)("div",{className:eH().textBlock,children:[(0,l.jsx)("h4",{className:eH().header,children:"Not sure where to start?"}),(0,l.jsx)("p",{className:eH().subtext,children:"A financial advisor may be able to help."})]}),(0,l.jsx)("img",{src:"/cds-images/calculators/buck-headshot-icons.png",alt:"",className:eH().headshot}),(0,l.jsx)("a",{href:eW,className:eH().ctaButton,onClick:()=>{(0,y.sx)(b.f.RETIREMENTCALCULATORCTACLICK,{"cta-name":"assumptions-cta"})},children:"Find An Advisor"})]});var eK=t(46105);let ez=[{id:"inflationRate",label:"Inflation Rate",tooltipMessage:"The rate at which the general level of prices for goods and services is rising each year.",min:0,max:25,step:.1,defaultValue:0,format:"percent"},{id:"preRetirementGrowth",label:"Savings Growth Rate (Pre-Retirement)",tooltipMessage:"Over long historical periods, a U.S. 80/20 stock-bond portfolio has averaged roughly 9.7% per year, according to data from Vanguard. After adjusting for an assumed 2.56% inflation rate, this translates to approximately 7.00% in real returns.",min:0,max:100,step:1,defaultValue:6.96,format:"percent"},{id:"postRetirementGrowth",label:"Savings Growth Rate (Post-Retirement)",tooltipMessage:"Over long historical periods, a U.S. 60/40 stock-bond portfolio has averaged roughly 8.8% per year, according to data from Vanguard. After adjusting for an assumed 2.56% inflation rate, this translates to approximately 6.00% in real returns.",min:0,max:100,step:1,defaultValue:6.08,format:"percent"},{id:"lifeExpectancy",label:"Life Expectancy",tooltipMessage:"This estimate affects how long retirement income is projected to last",min:65,max:100,step:1,defaultValue:95,format:"year"}],e$=e=>{let{targetRetirementAge:a,ssElectionAge:t,annualContribution:n,estimatedSavings:r,estimatedMonthlySocialSecurityBenefits:s,firstRmdYear:o,onRecalculate:c}=e,[u,d]=(0,i.useState)(()=>ez.reduce((e,a)=>(e[a.id]=a.defaultValue,e),{})),m=(0,i.useRef)(null),h=(0,i.useRef)(u);(0,i.useEffect)(()=>()=>{m.current&&clearTimeout(m.current)},[]);let p=(0,i.useCallback)((e,a)=>{d(t=>{let n={...t,[e]:a};return h.current=n,n}),c&&(m.current&&clearTimeout(m.current),m.current=setTimeout(()=>c(h.current),600))},[c]),g=new Set(["Target Retirement Age","Social Security Election Age","First RMD Year"]);return(0,l.jsxs)("div",{className:ep().retirementCalcPanel,children:[(0,l.jsxs)("h3",{className:ep().header,children:[(0,l.jsx)("img",{src:"/cds-images/calculators/invoice.svg",alt:"",className:ep().headerIcon}),"Current Retirement Plan"]}),(0,l.jsx)(eb,{rows:[{label:"Target Retirement Age",value:a},{label:"Estimated Total Savings",value:r},{label:"Annual Savings Contribution",value:n},{label:"Estimated Monthly Social Security Benefits",value:s},{label:"Social Security Election Age",value:t},{label:"First RMD Year",value:o}],formatValue:(e,a)=>"Social Security Election Age"!==a&&"First RMD Year"!==a||e?a&&g.has(a)?"".concat(e):"$".concat(Math.round(e).toLocaleString()):"N/A",columnHeaders:["Your Inputs","Our Projections"]}),(0,l.jsx)(eq,{}),(0,l.jsxs)("details",{className:ep().explanationSection,children:[(0,l.jsxs)("summary",{className:ep().seeMoreToggle,children:["Modify assumptions",(0,l.jsx)("i",{className:"fa fa-angle-down fa-center ".concat(ep().caretIcon)})]}),(0,l.jsx)("div",{className:ep().explanationContent,children:ez.map((e,a)=>(0,l.jsx)(eK.A,{config:e,value:u[e.id],onChange:p,showDivider:a<ez.length-1},e.id))})]})]})};var eJ=t(38561),eX=t(91028),eZ=t(97687),eQ=t(24294),e0=t(97320),e1=t(84929),e5=t(15944);let e2=e=>{var a,t,n,r,s,o,c,u,d;let{results:m,formInputs:g}=e,f=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=f.current;if(!e)return;let{top:a}=e.getBoundingClientRect();a>=0&&a<window.innerHeight||e.scrollIntoView({behavior:"smooth",block:"start"})},[]);let[j]=(0,h.A2)("con-1180_webplatform_retirement-calculator-matches",{},{overrideAttributes:{url:window.location.href}}),N=null==j||null==(a=j.variables)?void 0:a.trigger_minimum,C=!!(null==j?void 0:j.enabled)&&"off"!==j.variationKey,A=(0,e1.Z)(g)>=(null!=N?N:1/0),T=C&&A,S=!!(null==j||null==(t=j.variables)?void 0:t.display_popup),I=null==j||null==(n=j.variables)?void 0:n.placement,w=I&&I>=1&&I<=6?I:3,R=(null==j||null==(r=j.variables)?void 0:r.redirect_on_click)===!1,E=(0,v.y)(m),k=(0,i.useRef)(E.calculate);(0,i.useEffect)(()=>{k.current=E.calculate},[E.calculate]);let[M,L]=(0,i.useState)(g),B=(0,i.useRef)(M);(0,i.useEffect)(()=>{B.current=M},[M]);let F=(0,i.useMemo)(()=>(0,$.eB)(M),[M]),O=(0,i.useCallback)(async e=>{var a,t,n,r;let s=B.current,l={...s,primaryRetirementAge:null!=(a=e.retirementAge)?a:s.primaryRetirementAge,primarySocialSecurityElectionAge:null!=(t=e.ssElectionAge)?t:s.primarySocialSecurityElectionAge,annualSavingsDetails:void 0!==e.plannedAnnualSavings?{isPercentage:!0,amount:e.plannedAnnualSavings}:s.annualSavingsDetails,desiredRetirementIncome:{...s.desiredRetirementIncome,isPercentage:!1,amount:null!=(n=e.desiredAnnualRetirementIncome)?n:s.desiredRetirementIncome.isPercentage?Math.round((0,$.LD)(s)*s.desiredRetirementIncome.amount/100):s.desiredRetirementIncome.amount},inflationRate:void 0!==e.inflationRate?e.inflationRate/100:s.inflationRate,savingsGrowthRatePreRetirement:void 0!==e.preRetirementGrowth?e.preRetirementGrowth/100:s.savingsGrowthRatePreRetirement,savingsGrowthRatePostRetirement:void 0!==e.postRetirementGrowth?e.postRetirementGrowth/100:s.savingsGrowthRatePostRetirement,lifeExpectancy:null!=(r=e.lifeExpectancy)?r:s.lifeExpectancy};await k.current(()=>(0,x.s)(l))&&L(l)},[]),{calculatedSavings:D,necessarySavings:P}=E.results,G={header:null!=(u=null==j||null==(s=j.variables)?void 0:s.cta_header)?u:"",subheader:null==j||null==(o=j.variables)?void 0:o.cta_subtext,buttonCopy:null!=(d=null==j||null==(c=j.variables)?void 0:c.button_copy)?d:"",injectedValue:D},V=(0,eX.ie)(null==j?void 0:j.variables),{isOnTrack:Y,currentAge:U,preRet
1irementBreakdowns:H,averageAnnualIncome:W,averageAnnualNeed:q,incomeSources:K,estimatedTotalSavings:z,averageAnnualContribution:J,estimatedMonthlySocialSecurityBenefits:X,firstRmdYear:Z,longevityChartBreakdowns:Q,longevityYear:ee}=(0,$.pW)(E.results,F),[ea,et]=(0,i.useState)(!1),en=(0,i.useRef)(null),er=(0,i.useRef)(!1),[es]=(0,h.jt)(),{isSubmittingMatches:el,confirmationUrl:ei,submitError:eo,handleSubmit:ec,abort:eu}=(0,eY.G)({effectiveInputs:M,openInNewTab:R,resolveCurrentSavingsBracket:(e,a)=>""!==e.assetTier?e.assetTier:(0,e5.R)((0,e1.Z)(a)),utmData:p.AK});(0,e0.A)(en,()=>{T&&(er.current||(er.current=!0,(0,y.sx)(b.f.RETIREMENTONBOARDINGDISPLAY),es(b.f.RETIREMENTONBOARDINGDISPLAY)))},!0,[T]);let ed=T?(0,l.jsx)("div",{ref:en,children:(0,l.jsx)(eJ.A,{config:G,testId:"retirement-onboarding-cta",showInlineForm:!S&&ea,onCtaClick:()=>{(0,y.sx)(b.f.RETIREMENTONBOARDINGCLICK),es(b.f.RETIREMENTONBOARDINGCLICK),et(!0)},onFormSubmit:ec,isSubmittingForm:el,confirmationUrl:ei,submitError:eo,formOptions:V})}):null;return(0,l.jsxs)("div",{className:_().mainPanels,children:[(0,l.jsx)("div",{ref:f,className:_().scrollTarget,children:(0,l.jsx)(eS,{calculatedSavings:D,necessarySavings:P,averageAnnualIncome:W,averageAnnualNeed:q})}),1===w&&ed,(0,l.jsxs)("div",{children:[E.errorResults&&(0,l.jsx)("p",{role:"alert",className:_().recalcError,children:E.errorResults.message}),(0,l.jsx)(e$,{targetRetirementAge:F.primaryRetirementAge,ssElectionAge:F.primarySocialSecurityElectionAge||0,annualContribution:J,estimatedSavings:z,estimatedMonthlySocialSecurityBenefits:X,firstRmdYear:Z,onRecalculate:O})]}),2===w&&ed,(0,l.jsx)(ev,{yearlyBreakdowns:H}),3===w&&ed,(0,l.jsx)(eC,{averageAnnualIncome:W,goalIncome:q,incomeSources:K}),4===w&&ed,(0,l.jsx)(eR,{longevityChartBreakdowns:Q,primaryBirthYear:F.primaryBirthYear,currentAge:U,retirementAge:F.primaryRetirementAge,lifeExpectancy:F.lifeExpectancy,longevityYear:ee}),5===w&&ed,6===w?ed:(0,l.jsx)(eV,{isOnTrack:Y}),T&&S&&ea&&(0,l.jsx)(eQ.A,{isOpen:ea,onClose:()=>{(0,y.sx)(b.f.RETIREMENTONBOARDINGEXIT),es(b.f.RETIREMENTONBOARDINGEXIT),eu(),et(!1)},children:(0,l.jsx)(eZ.A,{variant:"modal",onSubmit:ec,isSubmitting:el,confirmationUrl:ei,submitError:eo,buttonCopy:G.buttonCopy,formOptions:V})})]})};var e3=t(47533),e4=t.n(e3);let e6=e=>{let{tips:a}=e,[t,n]=(0,eE.A)({loop:!0}),r=(0,eB.q)(n),s=(0,i.useCallback)(()=>null==n?void 0:n.scrollNext(),[n]),o=(0,i.useCallback)(()=>null==n?void 0:n.scrollPrev(),[n]);return(0,i.useEffect)(()=>{if(!n)return;let e=setTimeout(s,1e4);return()=>clearTimeout(e)},[n,s,r]),(0,i.useEffect)(()=>{n&&n.reInit()},[a,n]),(0,l.jsxs)("div",{className:e4().carouselWrapper,children:[(0,l.jsxs)("div",{className:e4().carouselRow,children:[(0,l.jsx)("button",{type:"button",className:e4().arrowButton,"aria-label":"Previous tip",onClick:o,children:(0,l.jsx)(A.default,{src:"/cds-images/homepage/left_chevron.svg",alt:"",width:8,height:14,className:e4().arrowIcon})}),(0,l.jsx)("div",{className:e4().embla,ref:t,children:(0,l.jsx)("div",{className:e4().emblaContainer,children:a.map((e,a)=>(0,l.jsx)("div",{className:e4().emblaSlide,children:(0,l.jsxs)("div",{className:e4().tipCard,children:[(0,l.jsxs)("div",{className:e4().tipHeader,children:[(0,l.jsx)(A.default,{src:"/cds-images/calculators/light-bulb.svg",alt:"",width:32,height:32,className:e4().tipIcon}),(0,l.jsx)("span",{className:e4().tipHeading,children:e.heading})]}),(0,l.jsx)("p",{className:e4().tipBody,children:e.body}),(0,l.jsx)("a",{href:J("desktop-single-page-slide-".concat(a+1)),className:e4().tipCtaButton,onClick:()=>X("desktop-single-page",{"slide-number":a+1}),children:"Find a financial advisor"})]})},e.heading))})}),(0,l.jsx)("button",{type:"button",className:e4().arrowButton,"aria-label":"Next tip",onClick:s,children:(0,l.jsx)(A.default,{src:"/cds-images/homepage/right_chevron.svg",alt:"",width:8,height:14,className:e4().arrowIcon})})]}),(0,l.jsx)("div",{className:e4().dots,children:a.map((e,a)=>(0,l.jsx)("button",{type:"button","aria-label":"Go to tip ".concat(a+1),className:m()(e4().dot,{[e4().dotActive]:a===r}),onClick:()=>null==n?void 0:n.scrollTo(a)},a))})]})};var e8=t(13975),e9=t(42732),e7=t(37240),ae=t(78824),aa=t(16405);let at=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(e8.A,{title:"About This Calculator",content:e7.dt[ae.c.RETIREMENT].about}),(0,l.jsx)(e8.A,{title:"Assumptions",children:(0,l.jsx)(l.Fragment,{children:(0,aa.Ay)(e7.dt[ae.c.RETIREMENT].assumptions)})}),(0,l.jsx)(e8.A,{children:(0,l.jsx)(e9.A,{})})]});var an=t(66573),ar=t(68968);let as={calculatedSavings:0,necessarySavings:0,firstRmdYear:null,yearlyBreakdowns:[]},al=()=>{let[e,a]=(0,i.useState)(0),t=(0,o.Ub)(p.Dy,{defaultValue:!1,initializeWithValue:!1}),[n,r]=(0,i.useState)(null),[s]=(0,h.jt)(),{locationFieldConfig:d,locationValidationSchema:j}=(0,i.useMemo)(()=>(0,f.L)(),[]),C=(0,i.useMemo)(()=>({...d,tooltipMessage:"City where you currently live or plan to retire."}),[d]),A=(0,i.useMemo)(()=>an.E.concat(u.Ik({location:j})),[j]),T=(0,v.y)(as),{registerSubmit:I,element:w,surfaceRef:R}=(0,ar.R)(ae.c.RETIREMENT),E=(0,g.I)({initialValues:z.yJ,validationSchema:A,calculate:e=>T.calculate(()=>(0,x.s)(e)),onSuccess:(e,t)=>{r(t),a(e=>e+1)},onUserSubmit:(e,a)=>{var t;I(),s(b.f.RETIREMENTCALCSUBMIT);let n=a.retirementAccounts.filter(e=>["AT_401K","AT_403B","AT_457B"].includes(e.accountType)),r=a.retirementAccounts.filter(e=>["AT_TRADITIONAL_IRA","AT_ROTH_IRA"].includes(e.accountType));(0,y.sx)(b.f.RETIREMENTCALCSUBMIT,{"current-url":window.location.href,"input1-income":a.primaryIncome,"input2-location":"".concat(a.location.city,", ").concat(a.location.stateAbbreviation),"input3-filing-status":a.filingStatusType,"input4-birth-year":a.primaryBirthYear,"input5-cash-savings":a.cashSavings,"input6-401k-contribution":n,"input7-ira-contribution":r,"input8-investable-assets":a.investableAssets,"input9-pension":a.pension,"input10-future-savings":a.annualSavingsDetails,"input11-retirement-age":a.primaryRetirementAge,"input12-retirement-income":a.desiredRetirementIncome,"input13-include-ss-benefit":null!==a.primarySocialSecurityElectionAge,"input14-ss-benefit-election-age":null!=(t=a.primarySocialSecurityElectionAge)?t:"N/A","output1-on-track":e.calculatedSavings>=e.necessarySavings?"yes":"no","output2-projected-savings":e.calculatedSavings,"output3-required-savings":e.necessarySavings})}});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:m()(N().calculatorParent,N().fullWidthCalculator,N().standaloneCalculator,_().calculatorWrapper),children:[(0,l.jsx)(S,{}),(0,l.jsxs)("div",{ref:R,className:_().singlePageLayout,children:[(0,l.jsx)("div",{className:_().singlePageInputCol,children:(0,l.jsx)(c.QI,{value:E,children:(0,l.jsx)(ec,{showResults:null!==n,onCalculate:()=>E.handleSubmit(),locationFieldConfig:C,isCompactLayout:t,isCalculating:T.isCalculating,errorResults:T.errorResults})})}),(0,l.jsx)("div",{className:_().singlePageResultsCol,children:n?(0,l.jsx)(e2,{results:T.results,formInputs:n},e):(0,l.jsxs)("div",{className:_().singlePagePlaceholder,children:[(0,l.jsx)("h2",{className:_().singlePagePlaceholderHeading,children:"Fill in your details on the left and press Calculate to see your projections"}),(0,l.jsx)("div",{className:_().placeholderCarousel,children:(0,l.jsx)(e6,{tips:z._c})})]})})]}),(0,l.jsx)(at,{})]}),w]})}},68274:(e,a,t)=>{"use strict";t.d(a,{default:()=>m});var n=t(95155),r=t(12115),s=t(10401),l=t.n(s),i=t(13519),o=t(78535),c=t(8036),u=t(51282);let d="https://getamp.smartasset.com?utm_source=smartasset&utm_campaign=banner",m=()=>{let[e,a]=(0,r.useState)(d);(0,r.useEffect)(()=>{let e=(0,i.UF)(window.location.pathname).pageKey;e&&(e=e.replaceAll(".","-")),a(e?"".concat(d,"&utm_content=").concat(e):d)},[]);let t=e=>()=>{(0,c.sx)(o.f.AMPBANNERCLICK,{type:e})};return(0,n.jsx)("section",{className:l().advisorMarketingPlatformSection,children:(0,n.jsx)(u.A,{primary:{href:e,onClick:t("primary")},secondary:{href:e,onClick:t("learn more")}})})}},72834:(e,a,t)=>{"use strict";let n;t.d(a,{default:()=>F});var r=t(95155),s=t(12115),l=t(85203),i=t.n(l),o=t(57740),c=t.n(o),u=t(22238),d=t(89762),m=t.n(d),h=t(57902),p=t(6311),g=t.n(p),v=t
1(3540);let f="social-security-benefits-chart",x=e=>{let{series:a}=e,t=(0,s.useCallback)(()=>{let e=0===a.length,t=a.map(e=>{let[a]=e;return a}),r=e?Array(10).fill(0):a.map(e=>{let[,a]=e;return a}),s={chart:{type:"column",spacingRight:16},title:{text:""},xAxis:{categories:e?Array(10).fill(""):t.map(String),labels:{enabled:!0,autoRotation:[0,-45],overflow:"allow",style:{fontSize:"11px"}},minorTickLength:0,tickLength:0},plotOptions:{column:{stacking:void 0,dataLabels:{enabled:!1}}},yAxis:{min:0,max:e?1e5:null,endOnTick:!e,startOnTick:!0,reversedStacks:!1,...v.q5},tooltip:e?{enabled:!1}:{enabled:!0,shared:!1,useHTML:!0,formatter(){var e,a;let n=null!=(e=t[Number(this.x)])?e:this.x;return'<div class="'.concat(c().chartTooltip,'">')+'<div class="'.concat(c().chartTooltipTitle,'">In the year ').concat(String(n),"</div>")+'<div class="'.concat(c().chartTooltipLegend,'"><span>Annual benefit: ')+"<strong>$".concat(Math.round(null!=(a=this.y)?a:0).toLocaleString(),"</strong></span></div>")+"</div>"}}},l=(0,v.g2)([{type:"column",name:"Annual Social Security Benefit",color:v.OK.BLUE,data:r}],s);if(n)return void n.update(l,!0,!0);n=g().chart(f,l)},[a]);return(0,s.useEffect)(()=>(t(),(0,v.k7)(f,()=>n)),[t]),(0,s.useEffect)(()=>()=>{null==n||n.destroy(),n=void 0},[]),(0,r.jsx)("div",{className:m().chartWrapper,children:(0,r.jsx)("div",{id:f,className:m().chartContainer})})};var y=t(24164),b=t.n(y),j=t(30235),N=t(8036),C=t(78535),_=t(73866);let A={utm_source:_.av,utm_campaign:_.XV},T=()=>{let e=(0,j.be)(A);return(0,r.jsxs)("div",{className:b().block,children:[(0,r.jsx)("div",{className:b().icon,children:(0,r.jsx)("img",{src:"/cds-images/calculators/light-bulb.svg",alt:""})}),(0,r.jsxs)("div",{className:b().heading,children:[(0,r.jsx)("div",{className:b().header,children:"Still Have Questions About Your Social Security Benefits?"}),(0,r.jsx)("div",{className:b().subheader,children:"A financial advisor may be able to help. Match with an advisor serving your area today."})]}),(0,r.jsx)("a",{href:e,className:b().button,onClick:()=>{(0,N.sx)(C.f.SOCIALSECURITYCTACLICK,{"current-url":window.location.href})},children:"Get Started Now"})]})};var S=t(89623),I=t(17005),w=t(4908);let R=e=>{let{calculated:a,results:t,comparison:n,electionAge:l,formatCurrency:o,errorMessage:u}=e,d=(0,s.useMemo)(()=>a?(0,w.mB)(t):[],[a,t]),p=a?o((0,w.nZ)(t)):I.Ol;return(0,r.jsxs)("section",{className:c().resultsContainer,"aria-label":"Calculator results",children:[(0,r.jsx)(S.A,{heading:(0,I.sc)(l),tooltipId:"social-security-annual-benefit",value:p}),(0,r.jsxs)("div",{className:c().resultBox,children:[(0,r.jsxs)("span",{className:c().chartTitle,children:["Estimated Annual Social Security Benefits",(0,r.jsx)(h.A,{id:"social-security-benefits-chart",message:"This chart projects your estimated annual Social Security retirement benefit from your selected claiming age through your assumed life expectancy."})]}),(0,r.jsx)(x,{series:d})]}),(0,r.jsx)("div",{className:i()(c().resultBox,m().comparisonGrid),children:I.lj.map(e=>(0,r.jsxs)("div",{className:m().comparisonCell,children:["Estimated annual benefit if you begin claiming at age ",e,":"," ",(0,r.jsx)("span",{className:i()(c().resultValue,c().secondary,m().comparisonValue),children:void 0===n[e]?I.Ol:o(n[e])})]},e))}),u&&(0,r.jsx)("p",{className:c().errorMessage,role:"alert",children:u}),(0,r.jsx)(T,{})]})};var E=t(77818),k=t(37240),M=t(78824),L=t(4589);let B=M.c.SOCIAL_SECURITY,F=()=>{var e;let a=(0,j.Ar)(),{form:t,api:n,formatCurrency:l}=(0,j.qE)({formConfig:w.E1,defaultResults:w.Z$}),[o,d]=(0,s.useState)(!1),[m,h]=(0,s.useState)(!1),[p,g]=(0,s.useState)({}),[v,f]=(0,s.useState)(I._4.ssElectionAge),x=(0,s.useRef)(0),y=async()=>{let e,r,s=++x.current,l=t.inputs.ssElectionAge;h(!0);let i=Promise.all(I.lj.filter(e=>e!==l).map(async e=>{let n=await (0,L.c)((0,w.sJ)(t.inputs,a,e));return[e,n.success&&n.result?(0,w.nZ)(n.result):void 0]}));try{[e,r]=await Promise.all([n.calculate(()=>(0,L.c)((0,w.sJ)(t.inputs,a))),i])}finally{s===x.current&&h(!1)}if(s!==x.current)return;if(!e){d(!1),g({});return}let o=Object.fromEntries(r.filter(e=>{let[,a]=e;return void 0!==a}));I.lj.some(e=>e===l)&&(o[l]=(0,w.nZ)(e)),g(o),d(!0),f(l),(0,N.sx)(C.f.SOCIALSECURITYCALCSUBMIT,{...(0,w.M$)(t.inputs,e),"output4-benefit-at-62":o[62],"output5-benefit-at-66":o[66],"output6-benefit-at-70":o[70]})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:i()(c().calculatorParent,c().fullWidthCalculator,c().standaloneCalculator),children:(0,r.jsx)("section",{className:c().calculatorContainer,"aria-label":(0,k.Ws)(B),children:(0,r.jsxs)("div",{className:c().formLayout,children:[(0,r.jsx)(u.A,{form:t,onCalculate:y,isCalculating:n.isCalculating||m}),(0,r.jsx)(R,{calculated:o,results:n.results,comparison:p,electionAge:v,formatCurrency:l,errorMessage:null==(e=n.errorResults)?void 0:e.message})]})})}),(0,r.jsx)(E.A,{})]})}}
1,77818:(e,a,t)=>{"use strict";t.d(a,{A:()=>o});var n=t(95155),r=t(13975),s=t(37240),l=t(16405),i=t(78824);let o=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.A,{title:"About This Calculator",children:(0,n.jsx)(n.Fragment,{children:(0,l.Ay)(s.dt[i.c.SOCIAL_SECURITY].about)})}),(0,n.jsx)(r.A,{title:"Assumptions",children:(0,n.jsx)(n.Fragment,{children:(0,l.Ay)(s.dt[i.c.SOCIAL_SECURITY].assumptions)})}),(0,n.jsx)(r.A,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{children:"SmartAsset.com is not intended to provide legal advice, tax advice, accounting advice or financial advice (Other than referring users to third party advisers registered or chartered as fiduciaries (“Adviser(s)”) with a regulatory body in the United States). Articles, opinions, and tools are for general information only and are not intended to provide specific advice or recommendations for any individual. The Social Security calculator is meant to demonstrate different potential scenarios to consider, and is not intended to provide definitive answers to anyone’s financial situation. We always suggest that you consult your accountant, tax, legal or financial advisor concerning your individual situation. This calculator does not access your official Social Security earnings record, and actual benefits may differ from the estimates shown."}),(0,n.jsx)("p",{children:"This is not an offer to buy or sell any security or interest. All investing involves risk, including loss of principal. Working with an adviser may come with potential downsides such as payment of fees (which will reduce returns). Past performance is not a guarantee of future results. There are no guarantees that working with an adviser will yield positive returns. The existence of a fiduciary duty does not prevent the rise of potential conflicts of interest."})]})})]})},79225:(e,a,t)=>{"use strict";t.d(a,{A:()=>c});var n=t(95155),r=t(41521),s=t(87334),l=t(57902),i=t(58805),o=t.n(i);let c=e=>{let{field:a,config:t}=e,{values:i,errors:c,touched:u,setFieldValue:d,setFieldTouched:m}=(0,r.j7)(),h=u[a]&&c[a]?c[a]:void 0;return(0,n.jsxs)("div",{className:o().inputGroup,children:[(0,n.jsxs)("label",{htmlFor:a,className:h?o().error:"",children:[t.label,t.tooltipMessage&&(0,n.jsx)(l.A,{id:a,message:t.tooltipMessage})]}),(0,n.jsxs)("div",{className:"".concat(o().inputContainer," ").concat(h?o().hasError:""),children:[(0,n.jsx)(s.A,{id:a,name:a,value:i[a],onSelect:e=>{d(a,e,!0),m(a,!0,!1)},fetchSuggestions:t.fetchSuggestions,getDisplayLabel:t.getDisplayLabel,placeholder:t.placeholder,filterLocallyBelowCount:t.filterLocallyBelowCount,error:h,styles:o()}),h&&(0,n.jsx)("p",{className:o().error,children:h})]})]})}},85293:e=>{e.exports={showMoreGroup:"ShowMoreGroup_showMoreGroup__MWM0s",showMore:"ShowMoreGroup_showMore__QcRr9",rotate:"ShowMoreGroup_rotate__Yq4Gi",collapsed:"ShowMoreGroup_collapsed__tN_PE","mask-collapsing":"ShowMoreGroup_mask-collapsing__3r5qH",expanded:"ShowMoreGroup_expanded___UzMJ","mask-expanding":"ShowMoreGroup_mask-expanding__zV7hw"}},87005:e=>{e.exports={advCta:"AdvCta_advCta__h_ygw"}},89623:(e,a,t)=>{"use strict";t.d(a,{A:()=>m});var n=t(95155),r=t(85203),s=t.n(r),l=t(57740),i=t.n(l),o=t(89762),c=t.n(o),u=t(57902),d=t(17005);let m=e=>{let{heading:a,tooltipId:t,value:r,emphasis:l="primary"}=e;return(0,n.jsxs)("div",{className:i().resultBox,children:[(0,n.jsxs)("h3",{className:i().resultTitle,children:[a,(0,n.jsx)(u.A,{id:t,message:d.q2})]}),(0,n.jsx)("output",{className:s()(i().resultValue,i()[l],c().resultFigure),children:r})]})}},89762:e=>{e.exports={comparisonGrid:"SocialSecurityCalculator_comparisonGrid__fQrVQ",comparisonCell:"SocialSecurityCalculator_comparisonCell__smhzx",formContainer:"SocialSecurityCalculator_formContainer__JHExK",comparisonValue:"SocialSecurityCalculator_comparisonValue__lDXeH",chartWrapper:"SocialSecurityCalculator_chartWrapper__cRd50",chartContainer:"SocialSecurityCalculator_chartContainer___rs_9",embeddedResultsColumn:"SocialSecurityCalculator_embeddedResultsColumn___tLb4",resultDivider:"SocialSecurityCalculator_resultDivider__ahSrB",resultFigure:"SocialSecurityCalculator_resultFigure__Vs9fk"}},89879:(e,a,t)=>{"use strict";t.d(a,{default:()=>c});var n=t(95155),r=t(85293),s=t.n(r),l=t(85203),i=t.n(l),o=t(12115);let c=e=>{let{children:a}=e,t=(0,o.useRef)(null),[r,l]=(0,o.useState)(150),[c,u]=(0,o.useState)(150),[d,m]=(0,o.useState)(150),[h,p]=(0,o.useState)(!1);return(0,o.useEffect)(()=>
1{if(t.current){var e,a;let n=null==(e=t.current)?void 0:e.clientHeight,r=null==(a=t.current)?void 0:a.scrollHeight;n!==r&&(u(r),m(n),l(n))}},[a]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:t,className:i()(s().showMoreGroup,h?s().expanded:s().collapsed),style:{height:"".concat(r,"px")},children:a}),(0,n.jsx)("span",{className:i()(s().showMore,h&&s().rotate),onClick:()=>{l(h?d:c),p(e=>!e)},children:h?"Show Less":"Show More"})]})}},90270:(e,a,t)=>{"use strict";t.d(a,{A:()=>o});var n=t(95155);t(12115);var r=t(52619),s=t.n(r),l=t(18623),i=t.n(l);let o=e=>{let{article:a,category:t,trackCardClick:r}=e,{sourceUrl:l,altText:o}=a.image||{sourceUrl:"",altText:""},c="";return a&&a.title&&(c=a.title.length>60?a.title.slice(0,60)+"...":a.title),(0,n.jsx)("div",{className:i().card,onClick:r,children:(0,n.jsxs)(s(),{href:a.uri,className:i().cardLink,children:[(0,n.jsx)("div",{className:i().imageContainer,children:l&&(0,n.jsx)("img",{src:l,alt:o,loading:"lazy"})}),(0,n.jsxs)("div",{className:i().cardHeader,children:[(0,n.jsx)("div",{className:i().category,children:t.name}),(0,n.jsx)("div",{className:i().title,children:c})]}),(0,n.jsxs)("div",{className:i().cardMeta,children:[(0,n.jsx)("span",{className:i().date,children:a.date.readable}),(0,n.jsx)("span",{className:i().readMore,children:"Read More"})]})]})})}},90668:e=>{e.exports={partnerOfferAd:"PartnerOfferAd_partnerOfferAd__do4KP",sponsoredLabel:"PartnerOfferAd_sponsoredLabel__hM86E",header:"PartnerOfferAd_header__B9H_5",logoContainer:"PartnerOfferAd_logoContainer___hvds",logo:"PartnerOfferAd_logo__fX3p3",fdic:"PartnerOfferAd_fdic__zeug2",offerCopy:"PartnerOfferAd_offerCopy__QO7Gj",offerDetails:"PartnerOfferAd_offerDetails__KV3BX",offerItem:"PartnerOfferAd_offerItem___UxLA",viewOfferButton:"PartnerOfferAd_viewOfferButton__rf8oz",offerLabel:"PartnerOfferAd_offerLabel__7KUDj",offerLabelDate:"PartnerOfferAd_offerLabelDate__2Jdl6",offerValue:"PartnerOfferAd_offerValue__5MxXG"}},91564:(e,a,t)=>{"use strict";t.d(a,{default:()=>p});var n=t(95155),r=t(12115),s=t(20063),l=t(79918),i=t(13519),o=t(83762),c=t(88176),u=t(67005),d=t(78204),m=t(40440);let h=e=>{let{categorySlug:a}=e,{enabled:t,config:s}=(0,o.R)(c.fU,c._D),[i,h]=(0,r.useState)(!1),p=(0,u.E)(),[g,v]=(0,r.useState)({value:0,total:0}),[f,x]=(0,r.useState)(!1),y=(0,r.useRef)(!1);(0,r.useEffect)(()=>{y.current||(y.current=!0,v(m._Q.increment(a))),h(!0)},[a]);let b=s.triggerType===c.YN.TIME_ON_PAGE,j=s.triggerType===c.YN.SCROLL_DEPTH,N=i&&t&&!p,C=(0,d.p)(s.triggerValue,N&&b),_=((e,a)=>{let[t,n]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!a||t)return;let r=document.querySelectorAll("article h2");if(0===r.length)return;let s=r[Math.min(Math.max(1,e),r.length)-1],l=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&n(!0)});return l.observe(s),()=>l.disconnect()},[a,e,t]),t})(s.triggerValue,N&&j),A=s.triggerType===c.YN.BLOG_COUNT?g.total>=s.triggerValue:g.value>=s.triggerValue,T=b?C:j?_:A,S=N&&!f&&T,I=(0,r.useCallback)(()=>x(!0),[]);return S?(0,n.jsx)(l.A,{config:s,utmSource:"blog_gate",trackingContext:{category:a,design:s.design,trigger_type:s.triggerType},onComplete:I}):null},p=e=>{let{categorySlug:a}=e,t=(0,s.usePathname)();return(0,i.Sj)(t)?(0,n.jsx)(h,{categorySlug:a}):null}},93542:(e,a,t)=>{"use strict";t.d(a,{default:()=>o});var n=t(95155),r=t(87005),s=t.n(r),l=t(8036),i=t(78535);let o=e=>{let{children:a}=e;return(0,n.jsx)("div",{className:s().advCta,onClick:e=>{var a;let t=e.target.closest('a[class~="wp-block-button__link"]');if(!t)return;let n=t.getAttribute("href")||void 0;(0,l.sx)(i.f.ADVCTACLICK,{label:null==(a=t.textContent)?void 0:a.trim(),href:n}),n&&(e.preventDefault(),window.location.assign((e=>{try{let a=new URL(e,window.location.origin);return Object.entries((0,l.ob)()).forEach(e=>{let[t,n]=e;n&&a.searchParams.set(t,n)}),a.toString()}catch{return e}})(n)))},children:a})}},95406:(e,a,t)=>{"use strict";t.d(a,{i:()=>r});var n=t(56498);let r=async e=>{let a={...e};return a.rateOfReturn=Number((a.rateOfReturn/100).toFixed(6)),void 0!==a.advisorFee&&(a.advisorFee=Number((a.advisorFee/100).toFixed(6))),await (0,n.t0)("/calculators/investment",a)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.