Two owners share a business 60/40. One of them already took $8,000 this year, the other nothing. There is $100,000 in the bank. How much can go out now, and to whom?

Three small rules answer it, and each one is a place where spreadsheets quietly go wrong:

  1. Cash ceiling = cash − restricted money − account minimums − bills inside the horizon − reserve. Never below zero.
  2. Lower of two limits: cash capacity is not legally distributable profit. If the accountant gives an accounting cap, the smaller number wins. If there is no cap, say so instead of pretending cash is profit.
  3. Carry-forward balancing: split the cumulative total by shares, subtract what each owner already got, and round with the largest-remainder method so the cents add up to the pool exactly.
from decimal import Decimal as D def cash_safe_ceiling(cash, restricted, minimums, bills, reserve, accounting_cap=None): """Cash the owners can take without touching what is already spoken for.""" ceiling = max(D(0), cash - restricted - minimums - bills - reserve) if accounting_cap is None: return ceiling, "accounting cap unknown - check unresolved" return min(ceiling, accounting_cap), "lower of cash ceiling and accounting cap" def balance_payouts(pool, shares, prior): """Carry-forward balancing: top owners up to their share of everything paid so far. Amounts in cents (int). No negative payout; rounded parts always sum to the pool.""" total = pool + sum(prior) targets = [total * s for s in shares] # exact, may be fractional cents need = [max(D(0), t - p) for t, p in zip(targets, prior)] k = D(pool) / sum(need) if sum(need) > pool else D(1) raw = [n * k for n in need] floor = [int(x) for x in raw] # cents, rounded down left = pool - sum(floor) order = sorted(range(len(raw)), key=lambda i: raw[i] - floor[i], reverse=True) for i in order[:left]: # largest remainder gets the spare cents floor[i] += 1 return floor ceiling, why = cash_safe_ceiling(D(100_000), D(10_000), D(20_000), D(30_000), D(15_000), D(10_000)) print(ceiling, "-", why) # 10000 - lower of ... pay = balance_payouts(1_000_000, [D("0.6"), D("0.4")], [800_000, 0]) print([p / 100 for p in pay]) # [2800.0, 7200.0] assert sum(pay) == 1_000_000 print(balance_payouts(100, [D(1)/3]*3, [0, 0, 0])) # [34, 33, 33] - adds up to 100 cents 

With $100,000 − $10,000 − $20,000 − $30,000 − $15,000 the cash ceiling is $25,000, but the $10,000 accounting cap wins. Cumulative total $18,000 at 60/40 gives targets of $10,800 and $7,200, so the payouts are $2,800 and $7,200, not $6,000 and $4,000. The 3-way split of 100 cents shows why the remainder step matters: plain rounding gives 33 + 33 + 33 = 99.

Two design choices worth copying: amounts live in integer cents, and money that has not arrived yet never funds the baseline (expected receipts belong in a separate scenario).

This is the core of Owner Pay & Distribution Control ($19 one-time, free demo), which also keeps salary, reimbursements, owner-loan repayments and contributions apart. It does not calculate tax or decide legal distributability.