How the BRRRR numbers work
All-in cost = purchase price + rehab + purchase closing costs + holding costs for the months before the refinance. Cash in is the all-in cost minus any purchase loan. At refinance the lender typically lends a percentage (LTV) of the after repair value; that new loan first pays off the purchase loan and the refinance closing costs, and anything left comes back to you. Cash left in the deal = all-in cost + refinance costs − refinance loan. If it is zero or negative, you recovered all your capital (an "infinite" cash-on-cash return).
Cash flow = rent after vacancy − operating expenses − the new principal-and-interest payment. The 70% rule is a quick screen: maximum purchase price ≈ 70% of ARV − rehab. Lenders set their own LTV limits and seasoning periods, and appraisals can come in below your ARV, so test a lower ARV before you buy. Estimates only, not financial, legal or tax advice.