mysi Find

Skill in Business and startups

Founder runway and spend payback

Works out how long a founder's savings last and whether a one-off spend pays back, and how it moves the date.

Say this to your agent

Use https://mysi.dev/runway-planning/ to check if a $9,000 build that adds $600 MRR pays back, and my runway after it.

Nothing to install, no key, no settings. An agent that can open web pages opens the page, follows the steps with the figures and code on it and gives you the answer.

When to use

  • A founder living on savings asks how many months they have, now or after a one-off spend.
  • Someone asks whether a one-off spend that raises monthly revenue or cuts a monthly cost pays back, and what it is worth today.
  • Not for funded companies with investors, debt or payroll plans, and not for spends paid monthly.

Steps

  1. Write down the savings, personal costs a month, side income a month, recurring revenue (MRR) today, MRR growth per month in percent, and business costs a month.
  2. Write down the spend: its one-off cost, the monthly gain it brings (extra MRR or a lower monthly cost), the years to judge it over, any value left at the end, and the yearly discount rate.
  3. Yearly benefit: multiply the monthly gain by 12.
  4. Call roi_payback() with initial_investment = the one-off cost, upfront_benefit=0, annual_net_benefit = the yearly benefit, analysis_years, residual_value and discount_rate_percent. Pass every argument: the defaults (14000 a year, 8000 residual, 10%) belong to an example. Use residual_value=0 when nothing is left at the end. Read npv and paybackYears.
  5. Runway after the spend: subtract the one-off cost from the savings. If the spend adds MRR, add the monthly gain to today's MRR; if it cuts a cost, subtract the monthly gain from the business costs.
  6. Call bootstrapped_runway() with personal_savings, monthly_personal_expenses, side_income, current_mrr, monthly_mrr_growth (in percent: 3 for 3%) and monthly_business_costs from step 5. Pass every argument: the defaults are an example founder. Read personalRunwayMonths.
  7. For the runway without the spend, call bootstrapped_runway() again with the numbers from step 1, and give both runways.
  8. Report the runway in months to one decimal (120 means the savings outlast the ten-year horizon), the NPV in dollars, and the payback in years.

Mistakes this prevents

  • Counting the spend's benefit but not taking its cost out of the savings, or the other way round.
  • Leaving the example defaults in either function, such as an 8000 residual value in roi_payback().
  • Entering growth as a fraction (0.03) where the function wants percent (3).
  • Treating a cost cut as revenue: it lowers business costs, it does not raise MRR.
  • Reading payback as profit: a spend can pay back and still leave a shorter runway in the first months.

Tell the user

  • Both results assume steady growth and costs; churn, taxes and one-off costs are not modelled, so compare scenarios rather than trust a date.
  • Extra MRR added in step 5 grows with the rest of MRR in the runway, while the payback counts it flat.
  • The discount rate is the user's choice; the NPV changes with it.

The code

Copy each function into your Python tool. Run its check first.

Bootstrapped runway

"""Bootstrapped runway: month by month for up to 120 months, how long a founder's savings last
and when compounding monthly recurring revenue (MRR) covers personal costs (ramen profitable),
all costs, and all costs without side income.
Inputs (dollars a month unless noted): personal_savings (dollars, 0 to 1e12, default 30000),
monthly_personal_expenses (0 to 1e9, default 3000), side_income (0 to 1e9, default 0),
current_mrr (0 to 1e9, default 500), monthly_mrr_growth (percent, 0 to 100, default 10),
monthly_business_costs (0 to 1e9, default 200).
Returns personalRunwayMonths (120 when savings last the whole horizon), monthsToRamenProfitable,
monthsToFullyProfitable, monthsToFullTimeBreakEven (0 = already; None if not within 120),
ramenMrr, breakEvenMrr, fullTimeBreakEvenMrr.
mysi, Bootstrapped runway, mysi.dev/bootstrapped-runway, version 1, changed 2026-12-04. MIT.
"""
import math


def _bootstrapped_runway_num(name, value, low, high):
    if isinstance(value, bool) or not isinstance(value, (int, float)) or not low <= value <= high:
        raise ValueError(f"{name} must be a number from {low} to {high}")
    return float(value)


def bootstrapped_runway(personal_savings=30000, monthly_personal_expenses=3000, side_income=0,
                        current_mrr=500, monthly_mrr_growth=10, monthly_business_costs=200):
    num = _bootstrapped_runway_num
    savings = num("personal_savings", personal_savings, 0, 1e12)
    personal = num("monthly_personal_expenses", monthly_personal_expenses, 0, 1e9)
    side = num("side_income", side_income, 0, 1e9)
    mrr = num("current_mrr", current_mrr, 0, 1e9)
    g = num("monthly_mrr_growth", monthly_mrr_growth, 0, 100) / 100
    business = num("monthly_business_costs", monthly_business_costs, 0, 1e9)
    targets = {"monthsToRamenProfitable": max(0, personal - side),
               "monthsToFullyProfitable": max(0, personal + business - side),
               "monthsToFullTimeBreakEven": personal + business}
    out = dict.fromkeys(targets)
    runway, prev_savings, prev_net = 120.0, savings, 0.0
    for m in range(121):                 # month 0 is now; 120 months is the horizon
        net = mrr + side - personal - business
        if runway == 120 and m > 0 and savings <= 0:
            # savings ran out during month m - 1: count the funded part of that month
            part = min(1, prev_savings / -prev_net) if prev_savings > 0 and prev_net < 0 else 0
            runway = math.floor((m - 1 + part) * 10 + 0.5) / 10
        for name, target in targets.items():
            if out[name] is None and mrr >= target:
                out[name] = m
        prev_savings, prev_net = savings, net
        savings += net
        mrr *= 1 + g
    out["personalRunwayMonths"] = runway
    out["ramenMrr"] = targets["monthsToRamenProfitable"]
    out["breakEvenMrr"] = targets["monthsToFullyProfitable"]
    out["fullTimeBreakEvenMrr"] = targets["monthsToFullTimeBreakEven"]
    return out


BOOTSTRAPPED_RUNWAY_CASES = [
    (dict(personal_savings=30000, monthly_personal_expenses=3000, side_income=0, current_mrr=500,
          monthly_mrr_growth=10, monthly_business_costs=200),
     {"personalRunwayMonths": 13.4, "monthsToRamenProfitable": 19, "monthsToFullyProfitable": 20}),
    (dict(personal_savings=5000, monthly_personal_expenses=2000, side_income=0, current_mrr=0,
          monthly_mrr_growth=0, monthly_business_costs=0),
     {"personalRunwayMonths": 2.5, "ramenMrr": 2000.0, "breakEvenMrr": 2000.0}),
    (dict(personal_savings=10000, monthly_personal_expenses=2000, side_income=500, current_mrr=1000,
          monthly_mrr_growth=50, monthly_business_costs=100),
     {"personalRunwayMonths": 120.0, "monthsToRamenProfitable": 1, "monthsToFullyProfitable": 2}),
]


def bootstrapped_runway_check(tolerance=1e-3):
    for given, want in BOOTSTRAPPED_RUNWAY_CASES:
        got = bootstrapped_runway(**given)
        for name, value in want.items():
            close = abs(got[name] - value) <= tolerance * max(1, abs(value))
            assert close, (name, got[name], value)
    return "ok"


if __name__ == "__main__":
    import json, sys
    bootstrapped_runway_check()
    given = dict(a.split("=", 1) for a in sys.argv[1:] if "=" in a)
    js = lambda v: v.lstrip("-")[:1].isdigit() or v[:1] in '[{".' or v in ("true", "false", "null")
    given = {k: json.loads(v) if js(v) else v for k, v in given.items()}
    if given:
        print(json.dumps(bootstrapped_runway(**given)))
Raw file

ROI and payback

"""ROI and payback: simple and annualized return, payback years (plain and discounted) and net
present value of an up-front investment that returns a fixed net benefit every year.
Inputs: initial_investment (0.01 to 1e12, default 50000), upfront_benefit (0 to 1e12,
default 0, received at year 0), annual_net_benefit (0 to 1e12, default 14000),
analysis_years (whole years 1 to 100, default 5), residual_value (0 to 1e12, default 8000,
received at the end of the last year), discount_rate_percent (0 to 1000, default 10).
Returns simpleRoiPercent, annualizedRoiPercent, paybackYears, discountedPaybackYears (None when
not reached), totalNetGain, totalNominalInflow, totalDiscountedInflow, npv; money to cents.
mysi, ROI and payback, mysi.dev/roi-payback, version 1, changed 2026-12-04. MIT.
"""
import math


def _roi_payback_num(name, value, low, high, whole=False):
    if isinstance(value, bool) or not isinstance(value, (int, float)) or not low <= value <= high \
            or (whole and value != int(value)):
        raise ValueError(f"{name} must be a {'whole ' * whole}number from {low} to {high}")
    return int(value) if whole else float(value)


def _roi_payback_r2(x):
    return math.floor(x * 100 + 0.5) / 100             # to the cent, halves up


def _roi_payback_years(cost, cumulative, residual_in_last):
    # cumulative[y] = inflow received by the end of year y; the benefit arrives evenly through
    # each year, so payback is interpolated inside the year. The residual comes at the very end.
    for y, cur in enumerate(cumulative):
        if cur < cost:
            continue
        if y == 0:
            return 0.0
        prev = cumulative[y - 1]
        if y == len(cumulative) - 1 and residual_in_last > 0:
            cur -= residual_in_last
            if cur < cost:
                return float(y)
        if cur - prev <= 0:
            return float(y)
        return _roi_payback_r2(y - 1 + min(1, max(0, (cost - prev) / (cur - prev))))
    return None


def roi_payback(initial_investment=50000, upfront_benefit=0, annual_net_benefit=14000,
                analysis_years=5, residual_value=8000, discount_rate_percent=10):
    cost = _roi_payback_num("initial_investment", initial_investment, 0.01, 1e12)
    up = _roi_payback_num("upfront_benefit", upfront_benefit, 0, 1e12)
    a = _roi_payback_num("annual_net_benefit", annual_net_benefit, 0, 1e12)
    n = _roi_payback_num("analysis_years", analysis_years, 1, 100, whole=True)
    res = _roi_payback_num("residual_value", residual_value, 0, 1e12)
    r = _roi_payback_num("discount_rate_percent", discount_rate_percent, 0, 1000) / 100
    nominal = [up + a * y + (res if y == n else 0) for y in range(n + 1)]
    # each year's benefit is discounted at the end of its year (ordinary annuity), not mid-year
    disc = [up + sum(a / (1 + r) ** i for i in range(1, y + 1)) for y in range(n + 1)]
    disc[-1] += res / (1 + r) ** n
    inflow, r2 = nominal[-1], _roi_payback_r2
    gain = inflow - cost
    annualized = -100.0 if inflow <= 0 else ((inflow / cost) ** (1 / n) - 1) * 100
    return {
        "simpleRoiPercent": r2(gain / cost * 100),
        "annualizedRoiPercent": r2(annualized),
        "paybackYears": _roi_payback_years(cost, nominal, res),
        "discountedPaybackYears": _roi_payback_years(cost, disc, res / (1 + r) ** n),
        "totalNetGain": r2(gain),
        "totalNominalInflow": r2(inflow),
        "totalDiscountedInflow": r2(disc[-1]),
        "npv": r2(disc[-1] - cost),
    }


ROI_PAYBACK_CASES = [
    (dict(initial_investment=50000, upfront_benefit=0, annual_net_benefit=14000, analysis_years=5,
          residual_value=8000, discount_rate_percent=10),
     {"simpleRoiPercent": 56.0, "paybackYears": 3.57, "npv": 8038.39}),
    (dict(initial_investment=1000, upfront_benefit=0, annual_net_benefit=400, analysis_years=3,
          residual_value=0, discount_rate_percent=10),
     {"simpleRoiPercent": 20.0, "paybackYears": 2.5, "npv": -5.26}),
    (dict(initial_investment=1000, upfront_benefit=200, annual_net_benefit=500, analysis_years=2,
          residual_value=100, discount_rate_percent=0),
     {"simpleRoiPercent": 30.0, "paybackYears": 1.6, "npv": 300.0}),
]


def roi_payback_check(tolerance=1e-3):
    for given, want in ROI_PAYBACK_CASES:
        got = roi_payback(**given)
        for name, value in want.items():
            close = abs(got[name] - value) <= tolerance * max(1, abs(value))
            assert close, (name, got[name], value)
    return "ok"


if __name__ == "__main__":
    import json, sys
    roi_payback_check()
    given = dict(a.split("=", 1) for a in sys.argv[1:] if "=" in a)
    js = lambda v: v.lstrip("-")[:1].isdigit() or v[:1] in '[{".' or v in ("true", "false", "null")
    given = {k: json.loads(v) if js(v) else v for k, v in given.items()}
    if given:
        print(json.dumps(roi_payback(**given)))
Raw file

Keep it: save https://mysi.dev/runway-planning.md as SKILL.md in a folder named runway-planning, and it is a skill in agents that have skill folders.

Tested

Tested 4 Dec 2026: claude-haiku-5-5 was right on 0 of 3 questions without this page and 3 of 3 with it; claude-fable-5-2 was right on 0 of 3 questions without this page and 3 of 3 with it.

Changes

Cite as: mysi, Founder runway and spend payback, mysi.dev/runway-planning, version 1, changed 2026-12-04. Code MIT.