A merchant cash advance is quoted as a multiplier: borrow $50,000, repay $65,000, "factor 1.30". To compare it with a loan you need the periodic rate at which the payment stream is worth exactly the money you received. That is an internal rate of return, and it is short to write.
Inputs, in cents
const payments = Array(130).fill(50000); // 130 business days x $500.00 const received = 4850000; // $50,000 minus a $1,500 fee taken up front Note received, not the face amount. A fee deducted before the money arrives is part of the cost.
Present value and a bisection
function pv(rate, payments) { let v = 0, d = 1; for (const p of payments) { d /= 1 + rate; v += p * d; } return v; } function periodicRate(received, payments) { let lo = 0, hi = 1; // 0% to 100% per period for (let i = 0; i < 200; i++) { const mid = (lo + hi) / 2; if (pv(mid, payments) > received) lo = mid; else hi = mid; } return hi; } const r = periodicRate(received, payments); console.log((r * 100).toFixed(4), (r * 260 * 100).toFixed(2)); // 0.4719 122.70 PV falls as the rate rises, so bisection always converges. Annualise with the number of payment periods per year: 260 for business days, 52 for weekly.
Two details that change the answer
- Annualising.
r * 260is the simple APR (122.7%). The effective rate,(1 + r) ** 260 - 1, is about 240%. Say which one you report. - Floats. Use floats only to search. In our tool the final rate is confirmed with exact integer arithmetic, so a rounding artefact cannot move the published number.
Compare: the same $48,500 from a 14% loan over 24 months with the same fee comes to 17.1% APR by the same method.
We use this in the free Business Loan & Cash Advance Cost Calculator.
