1import{y as pt,a as yt,j as e,P as ft,H as Me,aF as jt,v as Se,C as x,b as m,c as h,d as u,L as l,K as i,x as bt,E as vt,G as Nt,I as _,J as X,T as Rt,e as y,O as wt,Q as kt,R as Ct,N as Z,aP as Oe,aQ as Ee,aR as g,aS as f,aT as Le,aU as r,B as b,m as Ft,f as xe,bg as It,D as Pt,p as Tt,q as V,r as $,s as q}from"./index-Byg2HWAE.js";import{r as P,L as Ve}from"./vendor-Qgthw7N1.js";import{C as At}from"./chart-line-DHDWAOEK.js";import{C as Bt}from"./chart-pie-P9cErRnq.js";import{C as $e}from"./calculator-C06MfOK6.js";import{R as Mt,C as St,X as Ot,Y as Et,T as Lt,L as Vt,a as $t}from"./generateCategoricalChart-BoqWx9k4.js";import{L as qt,a as ee}from"./LineChart-CNPEj-ac.js";import{S as Dt}from"./share-DRHJpH16.js";import{C as qe}from"./copy-DV8e8Olv.js";/** 2 * @license lucide-react v0.453.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const zt=pt("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]),Ht=()=>({"@context":"https://schema.org","@type":"SoftwareApplication",name:"Free BRRR Calculator - Buy, Rehab, Rent, Refinance Analysis",applicationCategory:"FinanceApplication",description:"Analyze BRRR real estate deals with comprehensive cash flow, ARV, refinance, and ROI calculations. Free tool for real estate investors with detailed analysis and shareable reports.",url:typeof window<"u"?`${window.location.origin}/tools/brrr-calculator`:"",operatingSystem:"Web Browser",softwareVersion:"1.0",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},featureList:["BRRR analysis","ARV calculation","Cash-out refinance analysis","Equity tracking","Cash flow projections","ROI before and after refinance","Break-even analysis","5-year investment projection","Interactive charts","Investment recommendation"],creator:{"@type":"Organization",name:"REPSShield"}});function es(){var pe;const[s,De]=P.useState({purchasePrice:15e4,rehabCosts:25e3,closingCosts:3e3,holdingCosts:2e3,holdingMonths:6,arv:22e4,refinanceLTV:75,refinanceRate:7.5,refinanceTerm:30,refinancePoints:1,refinanceFees:2500,monthlyRent:2200,otherIncome:0,propertyTaxes:2400,insurance:1200,propertyManagement:8,maintenance:5,vacancy:5,utilities:0,hoa:0,capex:3}),[te,me]=P.useState(""),[D,z]=P.useState(!1),[he,ue]=P.useState(!1),{toast:T}=yt(),ze=async()=>{const t=new URLSearchParams;Object.entries(s).forEach(([c,d])=>{t.set(c,d.toString())});const n=`${window.location.origin}${window.location.pathname}?${t.toString()}`;me(n);try{await navigator.clipboard.writeText(n),z(!0),T({title:"Link Copied!",description:"Shareable link copied to clipboard."}),setTimeout(()=>z(!1),2e3)}catch{T({title:"Copy Failed",description:"Please copy the link manually.",variant:"destructive"})}},He=async()=>{const t=`<iframe src="${te||window.location.href}" width="100%" height="800" frameborder="0" title="BRRR Calculator"></iframe>`;try{await navigator.clipboard.writeText(t),ue(!0),T({title:"Embed Code Copied!",description:"Embed code copied to clipboard."}),setTimeout(()=>ue(!1),2e3)}catch{T({title:"Copy Failed",description:"Please copy the embed code manually.",variant:"destructive"})}},[v,We]=P.useState({preRefinanceCashFlow:!0,postRefinanceCashFlow:!0,equityBuilt:!0,totalCashInvested:!0,cumulativeReturn:!1}),H=t=>{We(n=>({...n,[t]:!n[t]}))},a=P.useMemo(()=>{const{purchasePrice:t,rehabCosts:n,closingCosts:c,holdingCosts:d,holdingMonths:j,arv:p,refinanceLTV:R,refinanceRate:ye,refinanceTerm:W,refinancePoints:Y,refinanceFees:Qe,monthlyRent:A,otherIncome:se,propertyTaxes:Ue,insurance:Ke,propertyManagement:fe,maintenance:je,vacancy:be,utilities:Ge,hoa:Je,capex:ve}=s,w=t+n+c+d*j,_e=p-w,k=p*R/100,Xe=k*Y/100+Qe,ae=k-Xe,N=w-ae,Q=ye/100/12,Ne=W*12,B=k>0?k*(Q*Math.pow(1+Q,Ne))/(Math.pow(1+Q,Ne)-1):0,re=Ue/12,ne=Ke/12,Re=A*fe/100,we=A*je/100,ke=A*be/100,le=Je,ie=Ge,Ce=A*ve/100,U=B+re+ne+Re+we+ke+le+ie+Ce,C=A+se,M=C-U,K=M*12,oe=re+ne+Re+we+ke+le+ie+Ce,Fe=(C-oe)*12,Ze=w>0?Fe/w*100:0,G=N>0?K/N*100:0,et=p>0?(C*12-oe*12)/p*100:0,tt=B>0?(C-oe)/B:0,st=C>0?U/C*100:0,at=U-se,ce=w>0?ae/w*100:0,rt=p-k,nt=N>0&&K>0?N/K:0,Ie=[];let F=k,de=0,I=A,J=p;const lt=3;for(let L=1;L<=5;L++){L>1&&(I=I*1.03),L>1&&(J=J*(1+lt/100));for(let Be=1;Be<=12;Be++)if(F>0){const ut=F*Q,gt=B-ut;F-=gt,F<0&&(F=0)}const it=I+se,ot=I*fe/100,ct=I*je/100,dt=I*be/100,xt=I*ve/100,mt=B+re+ne+ot+ct+
6dt+le+ie+xt,Pe=(it-mt)*12;de+=Pe;const Te=J-F,Ae=de+Te-N,ht=N>0?Ae/N*100:0;Ie.push({year:L,loanBalance:F,totalEquity:Te,annualCashFlow:Pe,cumulativeCashFlow:de,totalReturn:Ae,totalReturnPercentage:ht,propertyValue:J})}let S=!1,O="",E=0;return G>=15&&M>=400&&ce>=80?(S=!0,O="Excellent BRRR deal! Strong cash flow, high ROI, and great cash recovery.",E=95):G>=12&&M>=300&&ce>=70?(S=!0,O="Good BRRR opportunity with solid returns and cash recovery.",E=80):G>=8&&M>=200?(S=!0,O="Decent BRRR deal. Monitor cash flow and consider market conditions.",E=65):M>=0?(S=!1,O="Marginal BRRR deal. Low returns or cash recovery.",E=45):(S=!1,O="Poor BRRR deal. Negative cash flow or insufficient returns.",E=20),{totalCashInvested:w,equityAfterRehab:_e,refinanceLoanAmount:k,cashOutAmount:ae,netCashInvestedAfterRefi:N,monthlyMortgage:B,monthlyCashFlow:M,annualCashFlow:K,preRefinanceCashFlow:Fe,preRefinanceROI:Ze,postRefinanceROI:G,capRate:et,debtCoverageRatio:tt,expenseRatio:st,breakEvenRent:at,cashRecoveryPercentage:ce,remainingEquity:rt,paybackPeriod:nt,yearlyProjections:Ie,wouldBuy:S,recommendation:O,profitabilityScore:E,totalMonthlyExpenses:U,totalMonthlyIncome:C}},[s]);P.useEffect(()=>{document.title="Free BRRR Calculator â Buy, Rehab, Rent, Refinance Strategy Tool for Real Estate Investors";let t=document.querySelector('meta[name="description"]');t||(t=document.createElement("meta"),t.setAttribute("name","description"),document.head.appendChild(t)),t.content="Free BRRR calculator for real estate investors. Analyze Buy, Rehab, Rent, Refinance deals with ARV, cash-out refinance, and ROI calculations. Get instant investment recommendations.";const n={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What is the BRRR strategy in real estate investing?",acceptedAnswer:{"@type":"Answer",text:"BRRR stands for Buy, Rehab, Rent, Refinance. It's a real estate investment strategy where you purchase a property below market value, renovate it, rent it out, then refinance to pull out your initial investment and repeat the process."}},{"@type":"Question",name:"How do you calculate BRRR ROI?",acceptedAnswer:{"@type":"Answer",text:"BRRR ROI is calculated by dividing your annual cash flow by your remaining cash invested after refinancing. The goal is infinite ROI by pulling out 100% of your initial investment through refinancing while maintaining positive cash flow."}},{"@type":"Question",name:"What is ARV in BRRR investing?",acceptedAnswer:{"@type":"Answer",text:"ARV (After Repair Value) is the estimated value of the property after all renovations are completed. It's crucial for determining how much you can refinance and whether the BRRR deal will be profitable."}},{"@type":"Question",name:"How much can I refinance on a BRRR property?",acceptedAnswer:{"@type":"Answer",text:"Most lenders allow 75-80% LTV (Loan-to-Value) on investment properties. This means you can refinance up to 75-80% of the property's ARV. The goal is to refinance enough to recover your initial investment."}}]},c=document.querySelector('script[type="application/ld+json"][id="brrr-faq-schema"]');c&&c.remove();const d=document.createElement("script");d.type="application/ld+json",d.id="brrr-faq-schema",d.text=JSON.stringify(n),document.head.appendChild(d);const j=Ht(),p=document.createElement("script");return p.type="application/ld+json",p.text=JSON.stringify(j),document.head.appendChild(p),typeof window<"u"&&window.gtag&&window.gtag("event","page_view",{page_title:"BRRR Calculator",page_location:window.location.href}),()=>{document.title="REPSShield - IRS REP Tracking & Compliance Tools";const R=document.querySelector('script[id="brrr-faq-schema"]');R&&R.remove(),document.querySelectorAll('script[type="application/ld+json"]').forEach(W=>{var Y;(Y=W.textContent)!=null&&Y.includes("brrr-calculator")&&W.remove()})}},[]);const o=(t,n)=>{const c=n===""?0:Number(n);De(d=>({...d,[t]:c}))},ge=()=>{const t=new URLSearchParams;Object.entries(s).forEach(([c,d])=>{t.set(c,d.toString())});const n=`${window.location.origin}/tools/brrr-calculator?${t.toString()}`;return me(n),n},Ye=async(t,n)=>{try{await navigator.clipboard.writeText(t),n==="link"&&(z(!0),setTimeout(()=>z(!1),2e3)),T({title:"Copied!",description:`${n==="link"?"Link":"Embed code"} copied to clipboard`})}catch{T({title:"Error",description:"Failed to copy to clipboard",variant:"destructive"})}};return e.jsx(ft,{children:e.jsxs("div",{className:"lm-container lm-section-spacing",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 dark:text-gray-100 mb-6 text-center",children:"Free BRRR Calculator â Buy, Rehab, Rent, Refinance Strategy Tool"}),e.jsxs("p",{className:"lm-body-lg text-gray-600 dark:text-gray-400 mb-6 max-w-3xl mx-auto text-center leading-relaxed space-y-2",children:["Analyze"," ",e.jsx("span",{className:"font-semibold text-gray-900 dark:text-white border-b-2 border-green-500",children:"BRRR real estate deals"})," ","with comprehensive"," ",e.jsx("span",{className:"font-semibold text-gray-900 dark:text-white border-b-2 border-green-500",children:"ARV calculations"}),","," ",e.jsx("span",{className:"font-semibold text-gray-900 dark:text-white border-b-2 border-green-500",children:"cash-out refinance analysis"}),", and"," ",e.jsx("span",{className:"font-semibold text-gray-900 dark:text-white border-b-2 border-green-500",children:"ROI projections"}),". Perfect for real estate investors using the BRRR strategy."]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 max-w-4xl mx-auto mb-6 px-4",children:[e.jsxs("div",{className:"group bg-white dark:bg-gray-900 rounded-xl p-4 border border-blue-100 dar
6k:border-blue-800 shadow-sm transition-all duration-300 hover:shadow-md hover:border-blue-400 text-center",children:[e.jsx("div",{className:"bg-blue-100 dark:bg-blue-900 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3 transition-colors duration-300 group-hover:bg-blue-200 dark:group-hover:bg-blue-800/70",children:e.jsx(Me,{className:"h-6 w-6 text-blue-600 dark:text-blue-400 group-hover:text-blue-700 dark:group-hover:text-blue-300"})}),e.jsx("h3",{className:"text-sm font-semibold text-blue-900 dark:text-blue-100 mb-1 transition-colors duration-300 group-hover:text-blue-900 dark:group-hover:text-blue-200",children:"ARV Analysis"}),e.jsx("p",{className:"text-xs text-blue-700 dark:text-blue-300 leading-relaxed",children:"After Repair Value"})]}),e.jsxs("div",{className:"group bg-white dark:bg-gray-900 rounded-xl p-4 border border-green-100 dark:border-green-800 shadow-sm transition-all duration-300 hover:shadow-md hover:border-green-400 text-center",children:[e.jsx("div",{className:"bg-green-100 dark:bg-green-900 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3 transition-colors duration-300 group-hover:bg-green-200 dark:group-hover:bg-green-800/70",children:e.jsx(jt,{className:"h-6 w-6 text-green-600 dark:text-green-400 group-hover:text-green-700 dark:group-hover:text-green-300"})}),e.jsx("h3",{className:"text-sm font-semibold text-green-900 dark:text-green-100 mb-1 transition-colors duration-300 group-hover:text-green-900 dark:group-hover:text-green-200",children:"Cash-Out Refinance"}),e.jsx("p",{className:"text-xs text-green-700 dark:text-green-300 leading-relaxed",children:"Capital Recovery"})]}),e.jsxs("div",{className:"group bg-white dark:bg-gray-900 rounded-xl p-4 border border-purple-100 dark:border-purple-800 shadow-sm transition-all duration-300 hover:shadow-md hover:border-purple-400 text-center",children:[e.jsx("div",{className:"bg-purple-100 dark:bg-purple-900 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3 transition-colors duration-300 group-hover:bg-purple-200 dark:group-hover:bg-purple-800/70",children:e.jsx(Se,{className:"h-6 w-6 text-purple-600 dark:text-purple-400 group-hover:text-purple-700 dark:group-hover:text-purple-300"})}),e.jsx("h3",{className:"text-sm font-semibold text-purple-900 dark:text-purple-100 mb-1 transition-colors duration-300 group-hover:text-purple-900 dark:group-hover:text-purple-200",children:"BRRR ROI Analysis"}),e.jsx("p",{className:"text-xs text-purple-700 dark:text-purple-300 leading-relaxed",children:"Infinite Returns"})]}),e.jsxs("div",{className:"group bg-white dark:bg-gray-900 rounded-xl p-4 border border-orange-100 dark:border-orange-800 shadow-sm transition-all duration-300 hover:shadow-md hover:border-orange-400 text-center",children:[e.jsx("div",{className:"bg-orange-100 dark:bg-orange-900 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-3 transition-colors duration-300 group-hover:bg-orange-200 dark:group-hover:bg-orange-800/70",children:e.jsx(At,{className:"h-6 w-6 text-orange-600 dark:text-orange-400 group-hover:text-orange-700 dark:group-hover:text-orange-300"})}),e.jsx("h3",{className:"text-sm font-semibold text-orange-900 dark:text-orange-100 mb-1 transition-colors duration-300 group-hover:text-orange-900 dark:group-hover:text-orange-200",children:"5-Year Projections"}),e.jsx("p",{className:"text-xs text-orange-700 dark:text-orange-300 leading-relaxed",children:"Long-term Analysis"})]})]}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-x-6 gap-y-2 text-sm mb-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-gray-600 dark:text-gray-400",children:[e.jsx("span",{className:"text-green-600",children:"â"}),e.jsx("span",{children:"Complete BRRR analysis"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-600 dark:text-gray-400",children:[e.jsx("span",{className:"text-green-600",children:"â"}),e.jsx("span",{children:"ARV calculations"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-600 dark:text-gray-400",children:[e.jsx("span",{className:"text-green-600",children:"â"}),e.jsx("span",{children:"Refinance modeling"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-600 dark:text-gray-400",children:[e.jsx("span",{className:"text-green-600",children:"â"}),e.jsx("span",{children:"ROI tracking"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-600 dark:text-gray-400",children:[e.jsx("span",{className:"text-green-600",children:"â"}),e.jsx("span",{children:"100% free"})]})]}),e.jsx("div",{className:"text-center mb-6",children:e.jsx("p",{className:"text-sm text-blue-700 dark:text-blue-300",children:e.jsxs(Ve,{href:"/tools/rental-calculator",className:"font-medium transition-colors duration-300 hover:text-blue-900 dark:hover:text-blue-100",children:["Looking for traditional rental analysis?"," ",e.jsx("span",{className:"font-semibold underline",children:"Try our Rental Property Calculator â"})]})})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8",children:[e.jsxs(x,{className:"rounded-xl border border-gray-200 dark:border-gray-700 shadow-sm hover:shadow-md transition-shadow duration-300",children:[e.jsx(m,{className:"border-b border-gray-200 dark:border-gray-700 pb-2 mb-3",children:e.jsxs(h,{className:"flex items-center gap-2 text-gray-900 dark:text-gray-100 font-semibold text-xs md:text-sm",children:[e.jsx(Me,{className:"h-4 w-4 text-green-600"}),"Purchase & Rehab Details"]}
6)}),e.jsxs(u,{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"purchasePrice",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Purchase Price"}),e.jsx(i,{id:"purchasePrice",type:"number",value:s.purchasePrice===0?"":s.purchasePrice,onChange:t=>o("purchasePrice",t.target.value),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"rehabCosts",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Rehab/Repair Costs"}),e.jsx(i,{id:"rehabCosts",type:"number",value:s.rehabCosts===0?"":s.rehabCosts,onChange:t=>o("rehabCosts",t.target.value),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"closingCosts",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Closing Costs"}),e.jsx(i,{id:"closingCosts",type:"number",value:s.closingCosts===0?"":s.closingCosts,onChange:t=>o("closingCosts",t.target.value),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"holdingCosts",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Holding Costs/Month"}),e.jsx(i,{id:"holdingCosts",type:"number",value:s.holdingCosts,onChange:t=>o("holdingCosts",Number(t.target.value)),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"holdingMonths",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Months"}),e.jsx(i,{id:"holdingMonths",type:"number",value:s.holdingMonths,onChange:t=>o("holdingMonths",Number(t.target.value)),className:"mt-1 text-xs"})]})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"arv",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"After Repair Value (ARV)"}),e.jsx(i,{id:"arv",type:"number",value:s.arv,onChange:t=>o("arv",Number(t.target.value)),className:"mt-1 text-xs"})]})]})]}),e.jsxs(x,{className:"rounded-xl border border-gray-200 dark:border-gray-700 shadow-sm hover:shadow-md transition-shadow duration-300",children:[e.jsx(m,{className:"border-b border-gray-200 dark:border-gray-700 pb-2 mb-3",children:e.jsxs(h,{className:"flex items-center gap-2 text-gray-900 dark:text-gray-100 font-semibold text-xs md:text-sm",children:[e.jsx(zt,{className:"h-4 w-4 text-green-600"}),"Refinance Details"]})}),e.jsxs(u,{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"refinanceLTV",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Loan-to-Value (%)"}),e.jsx(i,{id:"refinanceLTV",type:"number",value:s.refinanceLTV,onChange:t=>o("refinanceLTV",Number(t.target.value)),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"refinanceRate",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Interest Rate (%)"}),e.jsx(i,{id:"refinanceRate",type:"number",step:"0.1",value:s.refinanceRate,onChange:t=>o("refinanceRate",Number(t.target.value)),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"refinanceTerm",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Term (Years)"}),e.jsx(i,{id:"refinanceTerm",type:"number",value:s.refinanceTerm,onChange:t=>o("refinanceTerm",Number(t.target.value)),className:"mt-1 text-xs"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"refinancePoints",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Points (%)"}),e.jsx(i,{id:"refinancePoints",type:"number",step:"0.1",value:s.refinancePoints,onChange:t=>o("refinancePoints",Number(t.target.value)),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"refinanceFees",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Other Fees"}),e.jsx(i,{id:"refinanceFees",type:"number",value:s.refinanceFees,onChange:t=>o("refinanceFees",Number(t.target.value)),className:"mt-1 text-xs"})]})]})]})]}),e.jsxs(x,{className:"rounded-xl border border-gray-200 dark:border-gray-700 shadow-sm hover:shadow-md transition-shadow duration-300",children:[e.jsx(m,{className:"border-b border-gray-200 dark:border-gray-700 pb-2 mb-3",children:e.jsxs(h,{className:"flex items-center gap-2 text-gray-900 dark:text-gray-100 font-semibold text-xs md:text-sm",children:[e.jsx(bt,{className:"h-4 w-4 text-green-600"}),"Rental Income"]})}),e.jsxs(u,{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"monthlyRent",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Monthly Rent"}),e.jsx(i,{id:"monthlyRent",type:"number",value:s.monthlyRent===0?"":s.monthlyRent,onChange:t=>o("monthlyRent",t.target.value),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"otherIncome",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Other Monthly Income"}),e.jsx(i,{id:"otherIncome",type:"number",value:s.otherIncome,onChange:t=>o("otherIncome",Number(t.target.value)),className:"mt-1 text-xs"})]})]})]}),e.jsxs(x,{className:"rounded-xl border border-gray-200 dark:border-gray-700 shadow-sm hover:shadow-md transition-shadow duration-300",children:[e.jsx(m,{className:"border-b border-gray-200 dark:border-gray-700 pb-2 mb-3",children:e.jsxs(h,{className:"flex items-center gap-2 text-gray-900 dark:text-gray-100 font-semibold text-xs md:text-sm",children:[e.jsx(Bt,{className:"h-4 w-4 text-green-600"}),"Operating Expenses"]})}),e.jsxs(u,{className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"propertyTaxes",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Ppty Taxes (Annual)"}),e.jsx(i,{id:"propertyTaxes",type:"number",value:s.propertyTaxes,onChange:t=>o("propertyTaxes",Number(t.target.value)),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"insurance",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Insurance (Annual)"}),e.jsx(i,{id:"insurance",type:"number",value:s.insurance,onChange:t=>o("insurance",Number(t.target.value)),className:"mt-1 text-xs"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"propertyManagement",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Property Mgmt (%)"}),e.jsx(i,{id:"propertyManagement",type:"number",value:s.propertyManagement,onChange:t=>o("propertyManagement",Number(t.target.value)),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"maintenance",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Maintenance (%)"}),e.jsx(i,{id:"maintenance",type:"number",value:s.maintenance,onChange:t=>
6o("maintenance",Number(t.target.value)),className:"mt-1 text-xs"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"vacancy",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Vacancy (%)"}),e.jsx(i,{id:"vacancy",type:"number",value:s.vacancy,onChange:t=>o("vacancy",Number(t.target.value)),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"capex",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"CapEx (%)"}),e.jsx(i,{id:"capex",type:"number",value:s.capex,onChange:t=>o("capex",Number(t.target.value)),className:"mt-1 text-xs"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"utilities",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"Utilities (Monthly)"}),e.jsx(i,{id:"utilities",type:"number",value:s.utilities,onChange:t=>o("utilities",Number(t.target.value)),className:"mt-1 text-xs"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(l,{htmlFor:"hoa",className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:"HOA (Monthly)"}),e.jsx(i,{id:"hoa",type:"number",value:s.hoa,onChange:t=>o("hoa",Number(t.target.value)),className:"mt-1 text-xs"})]})]})]})]})]}),e.jsx("div",{className:"w-full",children:e.jsxs(x,{children:[e.jsx(m,{children:e.jsxs(h,{className:"flex items-center gap-2 text-lg font-semibold text-gray-900 dark:text-gray-100",children:[e.jsx($e,{className:"h-5 w-5 text-green-600"}),"BRRR Analysis Results"]})}),e.jsx(u,{children:e.jsxs(vt,{defaultValue:"overview",className:"w-full",children:[e.jsxs(Nt,{className:"grid w-full grid-cols-2 grid-rows-2 gap-1 sm:gap-0 sm:grid-cols-4 sm:grid-rows-1",children:[e.jsx(_,{value:"overview",className:"text-xs px-2 py-2 sm:text-sm sm:px-4 sm:py-3",children:"Overview"}),e.jsx(_,{value:"cashflow",className:"text-xs px-2 py-2 sm:text-sm sm:px-4 sm:py-3",children:"Cash Flow"}),e.jsx(_,{value:"projections",className:"text-xs px-2 py-2 sm:text-sm sm:px-4 sm:py-3",children:"Projections"}),e.jsx(_,{value:"share",className:"text-xs px-2 py-2 sm:text-sm sm:px-4 sm:py-3",children:"Share"})]}),e.jsxs(X,{value:"overview",className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs(x,{children:[e.jsx(m,{className:"pb-3",children:e.jsxs(h,{className:"text-base flex items-center gap-2",children:[e.jsx(Rt,{className:"h-4 w-4 text-green-600"}),"Investment Summary"]})}),e.jsxs(u,{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Total Cash Invested:"}),e.jsxs("span",{className:"font-semibold",children:["$",a.totalCashInvested.toLocaleString()]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Cash-Out Amount:"}),e.jsxs(y,{variant:"default",children:["$",a.cashOutAmount.toLocaleString()]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Net Investment (After Refi):"}),e.jsxs("span",{className:"font-semibold",children:["$",a.netCashInvestedAfterRefi.toLocaleString()]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Cash Recovery:"}),e.jsxs(y,{variant:a.cashRecoveryPercentage>=75?"default":"secondary",children:[a.cashRecoveryPercentage.toFixed(1),"%"]})]})]})]}),e.jsxs(x,{children:[e.jsx(m,{className:"pb-3",children:e.jsxs(h,{className:"text-base flex items-center gap-2",children:[e.jsx(Se,{className:"h-4 w-4 text-green-600"}),"Performance Metrics"]})}),e.jsxs(u,{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Post-Refi Cash Flow:"}),e.jsxs(y,{variant:a.monthlyCashFlow>=0?"default":"destructive",children:["$",a.monthlyCashFlow.toFixed(0),"/mo"]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Post-Refi ROI:"}),e.jsxs(y,{variant:a.postRefinanceROI>=12?"default":"secondary",children:[a.postRefinanceROI.toFixed(1),"%"]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Debt Coverage Ratio:"}),e.jsx(y,{variant:a.debtCoverageRatio>=1.25?"default":"destructive",children:a.debtCoverageRatio.toFixed(2)})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Payback Period:"}),e.jsx("span",{className:"font-semibold",children:a.paybackPeriod>0?`${a.paybackPeriod.toFixed(1)} years`:"N/A"})]})]})]})]}),e.jsxs(x,{children:[e.jsx(m,{children:e.jsxs(h,{className:"text-lg flex items-center gap-2",children:[e.jsx(wt,{className:"h-5 w-5 text-green-600"}),"Smart Insights"]})}),e.jsxs(u,{className:"space-y-4",children:[e.jsx(kt,{className:a.wouldBuy?"border-green-200 bg-green-50 dark:bg-green-900/20":"border-red-200 bg-red-50 dark:bg-red-900/20",children:e.jsxs(Ct,{className:"flex items-start gap-3",children:[e.jsx("div",{className:`h-2 w-2 rounded-full mt-2 ${a.wouldBuy?"bg-green-500":"bg-red-500"}`}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium mb-1",children:a.wouldBuy?"â
Recommended Deal":"â Not Recommended"}),e.jsx("p",{className:"text-sm",children:a.recommendation})]})]})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[e.jsx("div",{className:"p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg",children:e.jsxs("p",{className:"text-blue-700 dark:text-blue-300",children:["ð° ",e.jsx("strong",{children:"Cash Recovery:"})," You've recovered"," ",a.cashRecoveryPercentage.toFixed(0),"% of your original investment via refinance."]})}),e.jsx("div",{className:"p-3 bg-green-50 dark:bg-green-900/20 rounded-lg",children:e.jsxs("p",{className:"text-green-700 dark:text-green-300",children:["ð
6 ",e.jsx("strong",{children:"ROI Impact:"})," Refinancing increased your ROI from"," ",a.preRefinanceROI.toFixed(1),"% to"," ",a.postRefinanceROI.toFixed(1),"%."]})}),e.jsx("div",{className:"p-3 bg-purple-50 dark:bg-purple-900/20 rounded-lg",children:e.jsxs("p",{className:"text-purple-700 dark:text-purple-300",children:["ð ",e.jsx("strong",{children:"Equity Position:"})," You retain $",a.remainingEquity.toLocaleString()," in equity after refinance."]})}),e.jsx("div",{className:"p-3 bg-orange-50 dark:bg-orange-900/20 rounded-lg",children:e.jsxs("p",{className:"text-orange-700 dark:text-orange-300",children:["âï¸ ",e.jsx("strong",{children:"Risk Assessment:"})," DCR of"," ",a.debtCoverageRatio.toFixed(2)," ",a.debtCoverageRatio>=1.25?"indicates strong":"suggests elevated"," ","loan risk."]})})]})]})]})]}),e.jsxs(X,{value:"cashflow",className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs(x,{children:[e.jsx(m,{children:e.jsx(h,{className:"text-lg",children:"Pre vs Post Refinance"})}),e.jsx(u,{className:"space-y-4",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Pre-Refi Annual Cash Flow:"}),e.jsxs(y,{variant:"outline",children:["$",a.preRefinanceCashFlow.toFixed(0)]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Post-Refi Annual Cash Flow:"}),e.jsxs(y,{variant:a.annualCashFlow>=0?"default":"destructive",children:["$",a.annualCashFlow.toFixed(0)]})]}),e.jsx(Z,{}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Pre-Refi ROI:"}),e.jsxs(y,{variant:"outline",children:[a.preRefinanceROI.toFixed(1),"%"]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Post-Refi ROI:"}),e.jsxs(y,{variant:a.postRefinanceROI>=8?"default":"secondary",children:[a.postRefinanceROI.toFixed(1),"%"]})]})]})})]}),e.jsxs(x,{children:[e.jsx(m,{children:e.jsx(h,{className:"text-lg",children:"Break-even Analysis"})}),e.jsx(u,{className:"space-y-4",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Current Rent:"}),e.jsxs("span",{className:"font-medium",children:["$",s.monthlyRent.toLocaleString()]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm",children:"Break-even Rent:"}),e.jsxs(y,{variant:s.monthlyRent>=a.breakEvenRent?"default":"destructive",children:["$",a.breakEvenRent.toFixed(0)]})]}),e.jsx(Z,{}),e.jsxs("div",{className:"text-center p-3 rounded-lg bg-gray-50 dark:bg-gray-800",children:[e.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400 mb-1",children:"Cash Flow Status"}),e.jsx("div",{className:`font-semibold ${a.monthlyCashFlow>=0?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"}`,children:a.monthlyCashFlow>=0?"â
Property is cash flow positive":"â ï¸ Property requires higher rent to break even"})]})]})})]})]}),e.jsxs(x,{children:[e.jsx(m,{children:e.jsx(h,{className:"text-lg",children:"Monthly Expense Breakdown"})}),e.jsx(u,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(Oe,{children:[e.jsx(Ee,{children:e.jsxs(g,{children:[e.jsx(f,{children:"Expense Category"}),e.jsx(f,{className:"text-right",children:"Monthly Amount"}),e.jsx(f,{className:"text-right",children:"% of Income"})]})}),e.jsxs(Le,{children:[e.jsxs(g,{children:[e.jsx(r,{children:"Mortgage Payment"}),e.jsxs(r,{className:"text-right",children:["$",a.monthlyMortgage.toFixed(0)]}),e.jsxs(r,{className:"text-right",children:[(a.monthlyMortgage/a.totalMonthlyIncome*100).toFixed(1),"%"]})]}),e.jsxs(g,{children:[e.jsx(r,{children:"Property Taxes"}),e.jsxs(r,{className:"text-right",children:["$",(s.propertyTaxes/12).toFixed(0)]}),e.jsxs(r,{className:"text-right",children:[(s.propertyTaxes/12/a.totalMonthlyIncome*100).toFixed(1),"%"]})]}),e.jsxs(g,{children:[e.jsx(r,{children:"Insurance"}),e.jsxs(r,{className:"text-right",children:["$",(s.insurance/12).toFixed(0)]}),e.jsxs(r,{className:"text-right",children:[(s.insurance/12/a.totalMonthlyIncome*100).toFixed(1),"%"]})]}),e.jsxs(g,{children:[e.jsx(r,{children:"Property Management"}),e.jsxs(r,{className:"text-right",children:["$",(s.monthlyRent*s.propertyManagement/100).toFixed(0)]}),e.jsxs(r,{className:"text-right",children:[s.propertyManagement.toFixed(1),"%"]})]}),e.jsxs(g,{children:[e.jsx(r,{children:"Maintenance"}),e.jsxs(r,{className:"text-right",children:["$",(s.monthlyRent*s.maintenance/100).toFixed(0)]}),e.jsxs(r,{className:"text-right",children:[s.maintenance.toFixed(1),"%"]})]}),e.jsxs(g,{children:[e.jsx(r,{children:"Vacancy"}),e.jsxs(r,{className:"text-right",children:["$",(s.monthlyRent*s.vacancy/100).toFixed(0)]}),e.jsxs(r,{className:"text-right",children:[s.vacancy.toFixed(1),"%"]})]}),e.jsxs(g,{children:[e.jsx(r,{children:"CapEx"}),e.jsxs(r,{className:"text-right",children:["$",(s.monthlyRent*s.capex/100).toFixed(0)]}),e.jsxs(r,{className:"text-right",children:[s.capex.toFixed(1),"%"]})]}),s.utilities>0&&e.jsxs(g,{children:[e.jsx(r,{children:"Utilities"}),e.jsxs(r,{className:"text-right",children:["$",s.utilities.toFixed(0)]}),e.jsxs(r,{className:"text-right",children:[(s.utilities/a.totalMonthlyIncome*100).toFixed(1),"%"]})]}),s.hoa>0&&e.jsxs(g,{children:[e.jsx(r,{children:"HOA"}),e.jsxs(r,{className:"text-right",children:["$",s.hoa.toFixed(0)]}),e.jsxs(r,{className:"text-right",children:[(s.hoa/a.totalMonthlyIncome*100).toFixed(1),"%"]})]}),e.jsxs(g,{className:"font-semibold border-t-2",children:[e.jsx(r,{children:"Total Expenses"}),e.jsxs(r,{className:"text-right",children:["$",a.totalMonthlyExpenses.toFixed(0)]}),e.jsxs(r,{className:"text-right",children:[a.expenseRatio.toFixed(1),"%"]})]})]})]})})})]})]}),e.jsxs(X,{value:"projections",className:"space-y-6",children:[e.jsxs(x,{children:[e.jsxs(m,{children:[e.jsx(h,{className:"text-lg",children:"5-Year BRRR Investment Projections"}),e.jsx("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Track cash flow, equity growth, and total returns over time"})]}),e.jsxs(u,{children:[e.jsxs("div",{className:"mb-6 p-4 bg-gray-50 dark:bg-gray-800 rounded-lg",children:[e.jsx("div",{className:"text-sm font-medium mb-3",children:"Display Metrics:"}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:[e.jsxs(b,{variant:v.postRefinanceCashFlow?"default":"outline",size:"sm",onClick:()=>H("postRefinanceCashFlow"),className:"text-xs flex items-center gap-1",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500"}),"Cash Flow"]}),e.jsxs(b,{variant:v.equityBuilt?"default":"outline",size:"sm",onClick:()=>H("equityBuilt"),className:"text-xs flex items-center gap-1",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500"}),"Total Equity"]}),e.jsxs(b,{variant:v.totalCashInvested?"default":"outline",size:"sm",onClick:()=>H("totalCashInvested"),className:"text-xs flex items-center gap-1",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-purple-500"}),"Total Return"]}),e.jsxs(b,{variant:v.cumulativeReturn?"default":"outline",size:"sm",onClick:()=>H("cumulativeReturn"),className:"text-xs flex items-center gap-1",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-500"}
6),"Cumulative CF"]})]})]}),e.jsx("div",{className:"h-96 w-full",children:((pe=a.yearlyProjections)==null?void 0:pe.length)>0?e.jsx(Mt,{width:"100%",height:"100%",children:e.jsxs(qt,{data:a.yearlyProjections,margin:{top:20,right:30,left:20,bottom:20},children:[e.jsx(St,{strokeDasharray:"3 3",className:"opacity-30"}),e.jsx(Ot,{dataKey:"year",className:"text-xs",tick:{fontSize:12}}),e.jsx(Et,{className:"text-xs",tick:{fontSize:12},tickFormatter:t=>`$${Math.round(t/1e3)}k`}),e.jsx(Lt,{content:({active:t,payload:n,label:c})=>{if(t&&n&&n.length){const d=a.yearlyProjections.find(j=>j.year===Number(c));return e.jsxs("div",{className:"bg-white dark:bg-gray-800 p-4 border rounded-lg shadow-lg max-w-xs",children:[e.jsxs("p",{className:"font-semibold mb-2",children:["Year ",c]}),n.map((j,p)=>{var R;return e.jsxs("p",{className:"text-sm",style:{color:j.color},children:[j.name,": $",(R=j.value)==null?void 0:R.toLocaleString()]},p)}),d&&e.jsx("div",{className:"mt-2 pt-2 border-t text-xs text-gray-600 dark:text-gray-400",children:e.jsxs("p",{children:["ROI:"," ",d.totalReturnPercentage.toFixed(1),"%"]})})]})}return null}}),e.jsx(Vt,{}),v.postRefinanceCashFlow&&e.jsx(ee,{type:"monotone",dataKey:"annualCashFlow",stroke:"#2563eb",strokeWidth:3,name:"Annual Cash Flow",dot:{fill:"#2563eb",strokeWidth:2,r:3},activeDot:{r:6,fill:"#2563eb"}}),v.equityBuilt&&e.jsx(ee,{type:"monotone",dataKey:"totalEquity",stroke:"#059669",strokeWidth:3,name:"Total Equity",dot:{fill:"#059669",strokeWidth:2,r:3},activeDot:{r:6,fill:"#059669"}}),v.totalCashInvested&&e.jsx(ee,{type:"monotone",dataKey:"totalReturn",stroke:"#7c3aed",strokeWidth:3,name:"Total Return",dot:{fill:"#7c3aed",strokeWidth:2,r:3},activeDot:{r:6,fill:"#7c3aed"}}),v.cumulativeReturn&&e.jsx(ee,{type:"monotone",dataKey:"cumulativeCashFlow",stroke:"#ea580c",strokeWidth:3,name:"Cumulative
6Cash Flow",dot:{fill:"#ea580c",strokeWidth:2,r:3},activeDot:{r:6,fill:"#ea580c"}}),e.jsx($t,{y:0,stroke:"#ef4444",strokeDasharray:"5 5"})]})}):e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsx("p",{className:"text-gray-500",children:"Enter property details to see projections"})})})]})]}),e.jsxs(x,{children:[e.jsx(m,{children:e.jsxs(h,{className:"flex items-center gap-2 text-lg font-semibold text-gray-900 dark:text-gray-100",children:[e.jsx(Ft,{className:"h-5 w-5 text-green-600"}),"5-Year Investment Breakdown"]})}),e.jsx(u,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(Oe,{children:[e.jsx(Ee,{children:e.jsxs(g,{children:[e.jsx(f,{children:"Year"}),e.jsx(f,{children:"Annual Cash Flow"}),e.jsx(f,{children:"Cumulative CF"}),e.jsx(f,{children:"Loan Balance"}),e.jsx(f,{children:"Total Equity"}),e.jsx(f,{children:"Total Return"}),e.jsx(f,{children:"Return %"})]})}),e.jsx(Le,{children:a.yearlyProjections.map(t=>e.jsxs(g,{children:[e.jsx(r,{className:"font-medium",children:t.year}),e.jsxs(r,{children:["$",t.annualCashFlow.toFixed(0)]}),e.jsxs(r,{children:["$",t.cumulativeCashFlow.toFixed(0)]}),e.jsxs(r,{children:["$",t.loanBalance.toFixed(0)]}),e.jsxs(r,{children:["$",t.totalEquity.toFixed(0)]}),e.jsxs(r,{children:["$",t.totalReturn.toFixed(0)]}),e.jsx(r,{children:e.jsxs(y,{variant:t.totalReturnPercentage>=15?"default":"secondary",children:[t.totalReturnPercentage.toFixed(1),"%"]})})]},t.year))})]})})})]})]}),e.jsx(X,{value:"share",className:"space-y-6",children:e.jsxs(x,{children:[e.jsx(m,{children:e.jsxs(h,{className:"flex items-center gap-2 text-lg font-semibold text-gray-900 dark:text-gray-100",children:[e.jsx(Dt,{className:"h-5 w-5 text-green-600"}),"Share Your BRRR Analysis"]})}),e.jsxs(u,{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(l,{className:"text-sm font-medium",children:"Shareable Link"}),e.jsxs("div",{className:"flex gap-2 mt-2",children:[e.jsx(i,{value:te||ge(),readOnly:!0,className:"flex-1"}),e.jsxs(b,{variant:"outline",size:"sm",onClick:()=>Ye(te||ge(),"link"),className:"flex items-center gap-2",children:[D?e.jsx(xe,{className:"h-4 w-4"}):e.jsx(qe,{className:"h-4 w-4"}),D?"Copied!":"Copy"]})]})]}),e.jsx(Z,{}),e.jsxs("div",{children:[e.jsx(l,{className:"text-sm font-medium mb-3 block",children:"Export Options"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:[e.jsxs(b,{onClick:ze,variant:"outline",className:"flex items-center gap-2",children:[D?e.jsx(xe,{className:"h-4 w-4"}):e.jsx(qe,{className:"h-4 w-4"}),D?"Copied!":"Copy Shareable Link"]}),e.jsxs(b,{onClick:He,variant:"outline",className:"flex items-center gap-2",children:[he?e.jsx(xe,{className:"h-4 w-4"}):e.jsx(It,{className:"h-4 w-4"}),he?"Copied!":"Copy Embed Code"]}),e.jsxs(b,{variant:"outline",className:"flex items-center gap-2",onClick:()=>window.print(),children:[e.jsx(Pt,{className:"h-4 w-4"}),"Export PDF"]})]})]}),e.jsx(Z,{}),e.jsxs("div",{className:"text-center p-4 bg-gradient-to-r from-blue-50 to-green-50 dark:from-blue-900/20 dark:to-green-900/20 rounded-lg",children:[e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300 mb-3",children:"Need to analyze a traditional rental property?"}),e.jsx(Ve,{href:"/tools/rental-calculator",children:e.jsxs(b,{variant:"outline",className:"flex items-center gap-2 mx-auto",children:[e.jsx($e,{className:"h-4 w-4"}),"Try Our Rental Property Calculator"]})})]})]})]})})]})})]})}),e.jsx("section",{className:"pt-16 pb-12 bg-white dark:bg-gray-950",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-10 text-center leading-tight",children:["Frequently Asked"," ",e.jsx("span",{className:"text-green-600",children:"Questions"})]}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-center mb-12 max-w-2xl mx-auto",children:"Everything you need to know about the Buy, Rehab, Rent, Refinance investment strategy."}),e.jsxs(Tt,{type:"single",collapsible:!0,className:"w-full space-y-4",children:[e.jsxs(V,{value:"faq-1",className:"border border-gray-200 dark:border-gray-700 rounded-2xl shadow-sm",children:[e.jsx($,{className:"text-green-700 text-md font-semibold hover:no-underline focus:outline-none px-6 py-4 flex justify-between items-center transition-colors duration-300",children:"What is the BRRR strategy in real estate investing?"}),e.jsx(q,{className:"px-6 pb-6 text-gray-700 dark:text-gray-300 leading-relaxed",children:"BRRR stands for Buy, Rehab, Rent, Refinance. It's a real estate investment strategy where you purchase a property below market value, renovate it to increase its value, rent it out for cash flow, then refinance to pull out your initial investment and repeat the process. Our calculator helps you analyze every step of this strategy to ensure profitability."})]}),e.jsxs(V,{value:"faq-2",className:"border border-gray-200 dark:border-gray-700 rounded-2xl shadow-sm",children:[e.jsx($,{className:"text-green-700 text-md font-semibold hover:no-underline focus:outline-none px-6 py-4 flex justify-between items-center transition-colors duration-300",children:"How do you calculate BRRR ROI?"}),e.jsx(q,{className:"px-6 pb-6 text-gray-700 dark:text-gray-300 leading-relaxed",children:"BRRR ROI is calculated by dividing your annual cash flow by your remaining cash invested after refinancing. The goal is
6infinite ROI by pulling out 100% of your initial investment while maintaining positive cash flow. Our calculator shows both pre-refinance and post-refinance ROI."})]}),e.jsxs(V,{value:"faq-3",className:"border border-gray-200 dark:border-gray-700 rounded-2xl shadow-sm",children:[e.jsx($,{className:"text-green-700 text-md font-semibold hover:no-underline focus:outline-none px-6 py-4 flex justify-between items-center transition-colors duration-300",children:"What is ARV in BRRR investing?"}),e.jsx(q,{className:"px-6 pb-6 text-gray-700 dark:text-gray-300 leading-relaxed",children:"ARV (After Repair Value) is the estimated value of the property after renovations. It's crucial for determining refinance amounts and deal profitability. Our calculator uses ARV to calculate refinance potential and equity position."})]}),e.jsxs(V,{value:"faq-4",className:"border border-gray-200 dark:border-gray-700 rounded-2xl shadow-sm",children:[e.jsx($,{className:"text-green-700 text-md font-semibold hover:no-underline focus:outline-none px-6 py-4 flex justify-between items-center transition-colors duration-300",children:"How much can I refinance on a BRRR property?"}),e.jsx(q,{className:"px-6 pb-6 text-gray-700 dark:text-gray-300 leading-relaxed",children:"Most lenders allow 75-80% LTV on investment properties. The goal is to refinance enough to recover your initial investment (purchase + rehab + closing). Our calculator models refinance scenarios so you can see your cash recovery potential."})]}),e.jsxs(V,{value:"faq-5",className:"border border-gray-200 dark:border-gray-700 rounded-2xl shadow-sm",children:[e.jsx($,{className:"text-green-700 text-md font-semibold hover:no-underline focus:outline-none px-6 py-4 flex justify-between items-center transition-colors duration-300",children:"What are typical BRRR strategy returns?"}),e.jsx(q,{className:"px-6 pb-6 text-gray-700 dark:text-gray-300 leading-relaxed",children:"Successful BRRR deals can achieve infinite ROI when you recover 100% of your investment. Even partial recovery (80â90%) can deliver 20â50%+ ROI. Our calculator shows 5-year projections to help you understand long-term returns."})]})]}),e.jsxs("div",{className:`mt-10 group flex flex-col rounded-2xl border border-gray-200 dark:border-gray-700 7 bg-white dark:bg-gray-900 shadow-sm transition-all duration-300 ease-in-out 8 hover:border-green-600 hover:shadow-lg hover:shadow-green-100/30`,children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4 px-6 pt-6",children:[e.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center 9 bg-green-100 dark:bg-green-900/30 text-green-600 dark:text-green-400 10 group-hover:scale-105 transition-transform duration-300 ease-in-out`,children:e.jsx("span",{className:"text-2xl leading-none",children:"ð¡"})}),e.jsx("h4",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Pro Tip for BRRR Investors"})]}),e.jsx("p",{className:"text-left text-gray-600 dark:text-gray-400 text-base leading-relaxed mb-6 px-6",children:"Success in BRRR investing depends on accurate ARV estimation and buying at the right price. Follow the 70% rule: never pay more than 70% of ARV minus repair costs. Our calculator helps you model scenarios with different purchase prices and rehab costs so you can find the optimal deal structure with confidence."})]})]})})})]})})}export{es as default};
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.