From b55388c83b947267df08f2c9cd3b9f7c487d8323 Mon Sep 17 00:00:00 2001 From: martbost Date: Mon, 28 Sep 2026 09:32:36 -0500 Subject: [PATCH] plan-lab: activity pool (15% company + 5% pool), money-flow bar, three example members, the mix table Co-Authored-By: Claude Fable 5.1 --- public/assets/plan-lab.js | 92 +++++++++++++++++++++++++++++---------- public/plan-lab.html | 23 +++++++--- 2 files changed, 87 insertions(+), 28 deletions(-) diff --git a/public/assets/plan-lab.js b/public/assets/plan-lab.js index 628f166..94c3c3b 100644 --- a/public/assets/plan-lab.js +++ b/public/assets/plan-lab.js @@ -11,6 +11,9 @@ sponsor: 0.5, // PROPOSED 28 Sep: this share of every level purchase follows the SPONSOR line (the recruiter, their recruiter...). The rest takes the depth/reach route fsTake: 0.20, // Fast Start: share of new joins who buy levels 2..fsLevels on the day they join (uptake is a guess; drag it) fsLevels: 3, + pool: 0.05, // AGREED 28 Sep: 5 of the 20 fee points go to a monthly activity pool; the company keeps the other 15 + active: 0.40, // share of members who do something with a tool in a month (guess; slider) + train: 0.50, // share of new members who finish the training in their first month (guess; slider) half: true, // one-direct half step: one recruit unlocks cash from depths 1-2 (levels 2-3); two recruits unlock full reach fee: 0.20, // admin fee, OUT of every price, to a receiver wallet in the same block (Marty, 27 Sep: 20%, same as InstantAdPay). The other 80% climbs. products: ['Widget 1','Widget 2','Widget 3','Widget 4','Widget 5','Widget 6','Widget 7','Widget 8'] }; @@ -571,8 +574,9 @@ let G = null; window.reachG = () => ({ G, PLAN }); // read-only handle for the check scripts let rnd = mulberry32(7); function mulberry32(a){ return function(){ a |= 0; a = a + 0x6D2B79F5 | 0; let t = Math.imul(a ^ a >>> 15, 1 | a); t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t; return ((t ^ t >>> 14) >>> 0) / 4294967296; }; } + const inc = x => x.cash + x.entry + x.pool; // what a member has received in dollars: cash, entry shares, pool function gAdd(parent, recruiter, month){ - const m = { id: G.nextId++, parent, kids: [], depth: parent ? parent.depth + 1 : 0, level: 1, directs: 0, recruiter, cash: 0, entry: 0, lic: 0, licV: 0, cashFrom: 0, cashFromHalf: 0, month, m0: 0, mDirects: 0, sp: 0 }; + const m = { id: G.nextId++, parent, kids: [], depth: parent ? parent.depth + 1 : 0, level: 1, directs: 0, recruiter, cash: 0, entry: 0, lic: 0, licV: 0, cashFrom: 0, cashFromHalf: 0, month, m0: 0, mDirects: 0, sp: 0, pool: 0, spent: 0, dc: 0 }; G.members.push(m); if (parent) parent.kids.push(m); return m; } @@ -597,11 +601,11 @@ const parent = gSlot(recruiter); const m = gAdd(parent, recruiter, month); m.unsponsored = !!unsponsored; recruiter.directs++; recruiter.mDirects++; if (recruiter.directs === 1) recruiter.cashFromHalf = m.id; if (recruiter.directs === 2) recruiter.cashFrom = m.id; - const gross = price(1), fee = gross * PLAN.fee, n = gross - fee; - G.aud.spent += gross; G.aud.entryFee += fee; G.aud.received += fee; + const gross = price(1), fee = gross * PLAN.fee, n = gross - fee, poolAmt = gross * PLAN.pool, company = fee - poolAmt; + m.spent += gross; G.aud.spent += gross; G.aud.entryFee += company; G.aud.pool += poolAmt; G.aud.received += fee; G.mon.pool += poolAmt; const toRec = n * (1 - PLAN.split), toUp = n * PLAN.split; - recruiter.entry += toRec; parent.entry += toUp; G.aud.received += n; - G.mon.in += gross; G.mon.admin += fee; G.mon.joins++; if (unsponsored) G.mon.assigned++; + recruiter.entry += toRec; parent.entry += toUp; G.aud.received += n; G.mon.en += n; + G.mon.in += gross; G.mon.admin += company; G.mon.joins++; if (unsponsored) G.mon.assigned++; if (month > 0 && PLAN.fsTake > 0 && rnd() < PLAN.fsTake) for (let L = 2; L <= Math.min(PLAN.fsLevels, PLAN.maxL); L++) gBuy(m, L); // Fast Start at join return m; } @@ -632,7 +636,7 @@ // each leg funds licences at its own share of the price: this leg's licence costs the sponsor share of level n, // and that cost climbs the sponsor line. A licence is still a full level (licV records its full value). const n = r.to.level + 1, cost = net(n) * PLAN.sponsor; - r.to.level = n; r.to.lic++; r.to.licV += net(n); G.mon.lics++; + r.to.level = n; r.to.lic++; r.to.licV += net(n); G.mon.lics++; G.mon.licV += net(n); gPayS(r.to, n, cost, origin, false); if (amt - cost > 0.005) gPayS(r.to, L, amt - cost, origin, true); } @@ -651,17 +655,35 @@ let r = gRoute(from, L, skipN, rem, origin); if (r.to && r.kind === 'lic' && amt < net(r.to.level + 1) * (1 - PLAN.sponsor) - 0.005) r = gRoute(from, L, skipN, true, origin); // short money never buys a licence; it climbs as cash if (!r.to) { G.aud.above += amt; G.aud.received += amt; G.mon.above += amt; return; } - if (r.kind === 'cash') { r.to.cash += amt; G.aud.received += amt; return; } + if (r.kind === 'cash') { r.to.cash += amt; r.to.dc += amt; G.mon.dc += amt; G.aud.received += amt; return; } const n = r.to.level + 1, cost = net(n) * (1 - PLAN.sponsor); // the depth leg's share of level n; with the sponsor leg off this is the whole price, as before - r.to.level = n; r.to.lic++; r.to.licV += net(n); G.mon.lics++; + r.to.level = n; r.to.lic++; r.to.licV += net(n); G.mon.lics++; G.mon.licV += net(n); gPay(r.to, n, cost, n - 2, origin, false); if (amt - cost > 0.005) gPay(r.to, L, amt - cost, 0, origin, true); } - function gBuy(m, L){ m.bought = (m.bought || 0) + 1; const gross = price(L), fee = gross * PLAN.fee; G.aud.spent += gross; G.aud.admin += fee; G.aud.received += fee; G.mon.in += gross; G.mon.admin += fee; G.mon.buys++; m.level = Math.max(m.level, L); gFlow(m, L, gross - fee, m); } - function gNewMonth(){ G.mon = { in: 0, admin: 0, joins: 0, assigned: 0, buys: 0, lics: 0, above: 0, sp: 0 }; for (const m of G.members) { m.m0 = m.cash + m.entry; m.mDirects = 0; } } + function gBuy(m, L){ m.bought = (m.bought || 0) + 1; const gross = price(L), fee = gross * PLAN.fee, poolAmt = gross * PLAN.pool, company = fee - poolAmt; m.spent += gross; G.aud.spent += gross; G.aud.admin += company; G.aud.pool += poolAmt; G.aud.received += fee; G.mon.in += gross; G.mon.admin += company; G.mon.pool += poolAmt; G.mon.buys++; m.level = Math.max(m.level, L); gFlow(m, L, gross - fee, m); } + function gNewMonth(){ G.mon = { in: 0, admin: 0, joins: 0, assigned: 0, buys: 0, lics: 0, above: 0, sp: 0, pool: 0, dc: 0, en: 0, licV: 0, poolPaid: 0, poolN: 0, poolShares: 0, poolNew: 0, poolNewAvg: 0 }; for (const m of G.members) { m.m0 = inc(m); m.mDirects = 0; } } + // The activity pool (agreed 28 Sep): 5 of the 20 fee points, split once a month by shares. Shares come from doing, + // never from rank or recruiting counts: 1 per tool day (capped 12), 20 for finishing the training in month one, + // 4 to the sponsor when a recruit finishes it. Nobody active = the month carries to the next. + function gPool(){ + const amt = G.mon.pool + (G.poolCarry || 0); if (!(amt > 0)) return; + const sh = new Map(); let total = 0, newN = 0, newSh = 0; + for (const m of G.members) { + if (m === G.you) continue; + let x = rnd() < PLAN.active ? 1 + Math.floor(rnd() * 12) : 0; + if (m.month === G.month && rnd() < PLAN.train) { x += 20; newN++; newSh += x; if (m.recruiter && m.recruiter !== G.you) sh.set(m.recruiter, (sh.get(m.recruiter) || 0) + 4); } + if (x) sh.set(m, (sh.get(m) || 0) + x); + } + for (const v of sh.values()) total += v; + if (!total) { G.poolCarry = amt; return; } + G.poolCarry = 0; + for (const [m, x] of sh) { const d = amt * x / total; m.pool += d; G.mon.poolPaid += d; } + G.mon.poolN = sh.size; G.mon.poolShares = total; G.mon.poolNew = newN; G.mon.poolNewAvg = newN ? (amt / total) * (newSh / newN) : 0; + } function gReset(){ rnd = mulberry32(7); - G = { month: 0, members: [], nextId: 1, you: null, rows: [], aud: { spent: 0, received: 0, admin: 0, entryFee: 0, above: 0 } }; + G = { month: 0, members: [], nextId: 1, you: null, rows: [], poolCarry: 0, aud: { spent: 0, received: 0, admin: 0, entryFee: 0, above: 0, pool: 0 } }; gNewMonth(); G.you = gAdd(null, null, 0); const seed = document.getElementById('gSeed').value; @@ -674,8 +696,8 @@ // Start over means start over (Marty, 28 Sep): the replay above only builds the org. Its money is reported once, // in the story head, then every counter goes back to zero and members keep only the levels they actually bought. G.replay = { in: G.aud.spent, admin: G.aud.admin + G.aud.entryFee, you: G.you.cash + G.you.entry, youLevel: G.you.level }; - for (const m of G.members) { m.cash = 0; m.entry = 0; m.lic = 0; m.licV = 0; m.level = m === G.you ? 1 : (m.seedLevel || 1); } - G.aud = { spent: 0, received: 0, admin: 0, entryFee: 0, above: 0 }; gNewMonth(); + for (const m of G.members) { m.cash = 0; m.entry = 0; m.pool = 0; m.spent = 0; m.dc = 0; m.lic = 0; m.licV = 0; m.level = m === G.you ? 1 : (m.seedLevel || 1); if (m !== G.you) for (let L = 1; L <= m.level; L++) m.spent += price(L); } // what their bought levels cost at these prices + G.aud = { spent: 0, received: 0, admin: 0, entryFee: 0, above: 0, pool: 0 }; G.poolCarry = 0; gNewMonth(); G.rows.push(gSnap(0)); const ol = document.getElementById('gStory'); if (ol) ol.innerHTML = '
  • ' + (seed === 'iap' ? 'Start: the InstantAdPay org today, placed 4-wide under each member\u2019s real recruiter: ' + cnt(G.members.length - 1) + ' members, ' + cnt(G.members.filter(x => x.level >= 2).length) + ' of them past level 1 (the levels they actually bought), ' + cnt(G.members.filter(x => x.directs >= 2).length) + ' qualified. Every counter starts at zero and counts only what happens from month 1. For reference, had these rules been running all along, their past purchases would have moved ' + $$(G.replay.in) + ', put ' + $$(G.replay.admin) + ' in the admin wallet and ' + $$(G.replay.you) + ' to you, funding you to level ' + G.replay.youLevel + '.' : 'Start: just you at level 1, nobody under you yet. In month 1 you recruit two people yourself (everyone needs two to receive cash at full reach); after that the org grows the way InstantAdPay’s did.') + ' Now run a month.
  • '; gRender(); @@ -683,15 +705,15 @@ } function gSnap(month){ const ms = G.members.filter(x => x !== G.you); - const grp = f => { const g = ms.filter(f), v = g.map(x => x.cash + x.entry).sort((a, b) => b - a); return { n: g.length, paid: g.filter(x => x.cash + x.entry > 0).length, total: v.reduce((a, b) => a + b, 0), median: v.length ? v[Math.floor(v.length / 2)] : 0, top: v[0] || 0, lic: g.reduce((a, x) => a + x.lic, 0) }; }; + const grp = f => { const g = ms.filter(f), v = g.map(x => inc(x)).sort((a, b) => b - a); const total = v.reduce((a, b) => a + b, 0); return { n: g.length, paid: g.filter(x => inc(x) > 0).length, total, avg: g.length ? total / g.length : 0, median: v.length ? v[Math.floor(v.length / 2)] : 0, top: v[0] || 0, lic: g.reduce((a, x) => a + x.lic, 0), pool: g.reduce((a, x) => a + x.pool, 0), spent: g.reduce((a, x) => a + x.spent, 0), poolPaid: g.filter(x => x.pool > 0).length }; }; let topB = null; for (const x of ms) if (!topB || x.mDirects > topB.mDirects) topB = x; const b20 = ms.filter(x => x.mDirects >= 20); - const extra = { sp: G.mon.sp, heavy: grp(x => x.directs >= 10), light: grp(x => x.directs >= 1 && x.directs < 10), passive: grp(x => x.directs === 0), - top: topB && topB.mDirects > 0 ? { id: topB.id, n: topB.mDirects, m: topB.cash + topB.entry - topB.m0, total: topB.cash + topB.entry, level: topB.level, directs: topB.directs } : null, - b20: { n: b20.length, avg: b20.length ? b20.reduce((a, x) => a + x.cash + x.entry - x.m0, 0) / b20.length : 0 } }; + const extra = { sp: G.mon.sp, pool: G.mon.pool, poolPaid: G.mon.poolPaid, poolN: G.mon.poolN, poolNew: G.mon.poolNew, poolNewAvg: G.mon.poolNewAvg, dc: G.mon.dc, en: G.mon.en, licV: G.mon.licV, heavy: grp(x => x.directs >= 10), light: grp(x => x.directs >= 1 && x.directs < 10), passive: grp(x => x.directs === 0), + top: topB && topB.mDirects > 0 ? { id: topB.id, n: topB.mDirects, m: inc(topB) - topB.m0, total: inc(topB), level: topB.level, directs: topB.directs } : null, + b20: { n: b20.length, avg: b20.length ? b20.reduce((a, x) => a + inc(x) - x.m0, 0) / b20.length : 0 } }; return { ...extra, month, joins: G.mon.joins, assigned: G.mon.assigned, buys: G.mon.buys, lics: G.mon.lics, members: ms.length, in: G.mon.in, admin: G.mon.admin, above: G.mon.above, - toMembers: ms.reduce((a, x) => a + x.cash + x.entry, 0), toYou: G.you.cash + G.you.entry, youLevel: G.you.level, youLic: G.you.lic, - paid: ms.filter(x => x.cash + x.entry > 0).length, l2: ms.filter(x => x.level >= 2).length, qualified: ms.filter(x => x.directs >= 2).length }; + toMembers: ms.reduce((a, x) => a + inc(x), 0), toYou: G.you.cash + G.you.entry, youLevel: G.you.level, youLic: G.you.lic, + paid: ms.filter(x => inc(x) > 0).length, l2: ms.filter(x => x.level >= 2).length, qualified: ms.filter(x => x.directs >= 2).length }; } function gMonth(){ G.month++; gNewMonth(); @@ -714,12 +736,31 @@ } // upgrades: each member at level L buys L+1 with probability pBuy, shallow to deep; licences from below make some of these free for (const m of G.members.slice().sort((a, b) => a.depth - b.depth || a.id - b.id)) { if (m === G.you || m.level >= PLAN.maxL) continue; if (rnd() < pBuy) gBuy(m, m.level + 1); } + gPool(); const s = gSnap(G.month); G.rows.push(s); const prev = G.rows[G.rows.length - 2]; const dYou = s.toYou - prev.toYou; - storyG('Month ' + G.month + '. ' + cnt(s.joins) + ' joined' + (s.assigned ? ', ' + cnt(s.assigned) + ' of them with no recruiter, assigned to members short of a direct' : '') + '. ' + cnt(s.buys) + ' bought a level with their own money and ' + cnt(s.lics) + ' licences were funded by pass-ups. Money in ' + $$(s.in) + ': admin wallet ' + $$(s.admin) + ', the rest to members' + (s.above ? ' (' + $$(s.above) + ' climbed past you to the company)' : '') + '. You: ' + (dYou >= 0 ? '+' : '') + $$(dYou) + '' + (s.youLevel > prev.youLevel ? ', and your team moved you to level ' + s.youLevel + '' : '') + '. ' + cnt(s.paid) + ' of ' + cnt(s.members) + ' members have been paid something; ' + cnt(s.l2) + ' are past level 1.' + (s.top ? ' Heaviest builder this month: #' + s.top.id + ' brought ' + cnt(s.top.n) + ' and made ' + $$(s.top.m) + ' this month (' + $$(s.top.total) + ' so far, level ' + s.top.level + ', ' + cnt(s.top.directs) + ' recruits in all).' : '') + (s.b20.n ? ' Builders who brought 20+ this month: ' + cnt(s.b20.n) + ', averaging ' + $$(s.b20.avg) + ' this month.' : '') + (s.sp ? ' Sponsor leg paid ' + $$(s.sp) + ' this month.' : ''), s.youLevel > prev.youLevel ? 'lic' : 'cash'); + storyG('Month ' + G.month + '. ' + cnt(s.joins) + ' joined' + (s.assigned ? ', ' + cnt(s.assigned) + ' of them with no recruiter, assigned to members short of a direct' : '') + '. ' + cnt(s.buys) + ' bought a level with their own money and ' + cnt(s.lics) + ' licences were funded by pass-ups. Money in ' + $$(s.in) + ': company ' + $$(s.admin) + ', pool ' + $$(s.pool) + ', the rest to members' + (s.above ? ' (' + $$(s.above) + ' climbed past you to the company)' : '') + '. You: ' + (dYou >= 0 ? '+' : '') + $$(dYou) + '' + (s.youLevel > prev.youLevel ? ', and your team moved you to level ' + s.youLevel + '' : '') + '. ' + cnt(s.paid) + ' of ' + cnt(s.members) + ' members have been paid something; ' + cnt(s.l2) + ' are past level 1.' + (s.top ? ' Heaviest builder this month: #' + s.top.id + ' brought ' + cnt(s.top.n) + ' and made ' + $$(s.top.m) + ' this month (' + $$(s.top.total) + ' so far, level ' + s.top.level + ', ' + cnt(s.top.directs) + ' recruits in all).' : '') + (s.b20.n ? ' Builders who brought 20+ this month: ' + cnt(s.b20.n) + ', averaging ' + $$(s.b20.avg) + ' this month.' : '') + (s.sp ? ' Sponsor leg paid ' + $$(s.sp) + ' this month.' : '') + (s.poolPaid ? ' Pool: ' + $$(s.poolPaid) + ' split among ' + cnt(s.poolN) + ' active members, ' + $$(s.poolPaid / s.poolN) + ' each on average' + (s.poolNew ? '; ' + cnt(s.poolNew) + ' new members who finished training got about ' + $$(s.poolNewAvg) + ' each' : '') + '.' : ''), s.youLevel > prev.youLevel ? 'lic' : 'cash'); gRender(); } + function gVisuals(s){ + const flow = document.getElementById('gFlow'); if (!flow) return; + if (!s.in) { flow.innerHTML = '

    Run a month.

    '; document.getElementById('gPeople').innerHTML = ''; document.getElementById('gMix').innerHTML = ''; return; } + const spCash = s.sp, parts = [['Company 15%', s.admin, '#6B7280'], ['Pool 5%', s.pool, '#0E9F9E'], ['Entry shares to members', s.en, '#D97706'], ['Sponsor-leg cash', spCash, '#6D3FD1'], ['Depth-leg cash', s.dc, '#2563EB'], ['Climbed above the org', s.above, '#9333EA']]; + const tot = parts.reduce((a, p) => a + p[1], 0) || 1; + flow.innerHTML = '
    ' + parts.filter(p => p[1] > 0).map(p => '
    ').join('') + '
    ' + + '
    ' + parts.map(p => '' + p[0] + ' ' + $$(p[1]) + ' (' + Math.round(100 * p[1] / tot) + '%)').join('') + '
    ' + + '

    Money in this month ' + $$(s.in) + '. Along the way ' + cnt(s.lics) + ' licences were funded, worth ' + $$(s.licV) + ' of levels nobody had to pay for.

    '; + const ms = G.members.filter(x => x !== G.you); + const med = arr => { const v = arr.slice().sort((a, b) => inc(a) - inc(b)); return v.length ? v[Math.floor(v.length / 2)] : null; }; + let heavy = null; for (const x of ms) if (!heavy || x.directs > heavy.directs) heavy = x; + const light = med(ms.filter(x => x.directs >= 1 && x.directs < 10)); + const oldP = ms.filter(x => x.directs === 0 && G.month - x.month >= 3), pas = med(oldP.length ? oldP : ms.filter(x => x.directs === 0)); + const card = (title, x, why) => !x ? '' : '
    ' + title + '

    #' + x.id + ' \u00b7 level ' + x.level + ' \u00b7 ' + cnt(x.directs) + ' recruit' + (x.directs === 1 ? '' : 's') + '

    In since month ' + x.month + '. Paid in ' + $$(x.spent) + '. Got back ' + $$(inc(x)) + ': cash ' + $$(x.cash) + ' (sponsor leg ' + $$(x.sp) + ', depth ' + $$(x.dc) + '), entry shares ' + $$(x.entry) + ', pool ' + $$(x.pool) + '. ' + cnt(x.lic) + ' licence' + (x.lic === 1 ? '' : 's') + ' worth ' + $$(x.licV) + '. Net ' + (inc(x) - x.spent >= 0 ? '+' : '\u2212') + $$(Math.abs(inc(x) - x.spent)) + '' + (x.licV ? ' in cash, ' + (inc(x) + x.licV - x.spent >= 0 ? '+' : '\u2212') + $$(Math.abs(inc(x) + x.licV - x.spent)) + ' counting licences' : '') + '.

    ' + why + '

    '; + document.getElementById('gPeople').innerHTML = card('HEAVIEST BUILDER', heavy, 'The most personal recruits in the org.') + card('TYPICAL LIGHT BUILDER', light, 'The median member with 1 to 9 recruits.') + card('TYPICAL JOIN-AND-PAY MEMBER', pas, oldP.length ? 'The median member with no recruits, in for 3 months or more.' : 'The median member with no recruits.'); + const row = (name, g) => '' + name + '' + cnt(g.n) + '' + (g.n ? Math.round(100 * g.paid / g.n) : 0) + '%' + $$(g.median) + '' + $$(g.avg) + '' + $$(g.top) + '' + $$(g.n ? g.spent / g.n : 0) + '' + cnt(g.poolPaid) + '' + $$(g.pool) + '' + cnt(g.lic) + ''; + document.getElementById('gMix').innerHTML = '' + row('Builders, 10+ recruits', s.heavy) + row('Light builders, 1 to 9', s.light) + row('Join-and-pay, no recruits', s.passive) + '
    GroupMembersPaid anythingMedian got backAverageTopAvg paid inGot poolPool totalLicences
    '; + } function storyG(html, cls){ const ol = document.getElementById('gStory'); if (!ol) return; const li = document.createElement('li'); if (cls) li.className = cls; li.innerHTML = html; ol.prepend(li); while (ol.children.length > 40) ol.removeChild(ol.lastChild); } function gRender(){ const s = G.rows[G.rows.length - 1]; @@ -727,17 +768,19 @@ document.getElementById('gLevel').textContent = s.youLevel; document.getElementById('gLevelS').textContent = 'reach = depth 1 to ' + s.youLevel + ' \u00b7 ' + s.youLic + ' licence' + (s.youLic === 1 ? '' : 's') + ' funded for you'; document.getElementById('gYou').textContent = $$(s.toYou); document.getElementById('gYouS').textContent = 'cash ' + $$(G.you.cash) + ' + entries ' + $$(G.you.entry) + '; licences worth ' + $$(G.you.licV) + ' apart'; document.getElementById('gAdmin').textContent = $$(G.aud.admin + G.aud.entryFee); + document.getElementById('gPool').textContent = $$(G.members.reduce((a, x) => a + x.pool, 0)); document.getElementById('gPoolS').textContent = s.poolN ? 'this month ' + $$(s.poolPaid) + ' to ' + cnt(s.poolN) + ' active members' : (Math.round(PLAN.pool * 100)) + '% of every dollar, split by activity'; + gVisuals(s); document.getElementById('gPaid').textContent = cnt(s.paid); document.getElementById('gPaidS').textContent = 'of ' + cnt(s.members) + ' (' + (s.members ? Math.round(100 * s.paid / s.members) : 0) + '%) \u00b7 ' + cnt(s.qualified) + ' qualified'; document.getElementById('gIn').textContent = $$(G.aud.spent); const tb = document.querySelector('#gTable tbody'); if (tb) { tb.innerHTML = ''; for (const r of G.rows) { const tr = document.createElement('tr'); tr.innerHTML = '' + r.month + '' + cnt(r.joins) + '' + cnt(r.members) + '' + cnt(r.buys) + '' + $$(r.in) + '' + $$(r.admin) + '' + $$(r.in - r.admin - r.above) + '' + $$(r.toYou) + '' + r.youLevel + '' + cnt(r.paid) + '' + cnt(r.l2) + ''; tb.appendChild(tr); } } const sp = document.getElementById('gSpread'); if (sp) { - const ms = G.members.filter(x => x !== G.you).map(x => x.cash + x.entry).sort((a, b) => b - a); + const ms = G.members.filter(x => x !== G.you).map(x => inc(x)).sort((a, b) => b - a); const pct = (p) => ms.length ? ms[Math.min(ms.length - 1, Math.floor(ms.length * p))] : 0; const top10 = ms.slice(0, Math.max(1, Math.round(ms.length * 0.1))).reduce((a, b) => a + b, 0), all = ms.reduce((a, b) => a + b, 0); const lv = {}; for (const x of G.members) if (x !== G.you) lv[x.level] = (lv[x.level] || 0) + 1; - const older = G.members.filter(x => x !== G.you && G.month - x.month >= 6), olderPaid = older.filter(x => x.cash + x.entry > 0); - const olderVals = older.map(x => x.cash + x.entry).sort((a, b) => b - a), olderMed = olderVals.length ? olderVals[Math.floor(olderVals.length / 2)] : 0; + const older = G.members.filter(x => x !== G.you && G.month - x.month >= 6), olderPaid = older.filter(x => inc(x) > 0); + const olderVals = older.map(x => inc(x)).sort((a, b) => b - a), olderMed = olderVals.length ? olderVals[Math.floor(olderVals.length / 2)] : 0; const carried = G.members.filter(x => x !== G.you && x.level >= 2 && !(x.bought || 0)).length, ownBuy = G.members.filter(x => x !== G.you && (x.bought || 0) > 0).length; sp.innerHTML = 'Top earner in the org: ' + $$(ms[0] || 0) + '. Top 10% of members took ' + (all ? Math.round(100 * top10 / all) : 0) + '% of what members received. Median member: ' + $$(pct(0.5)) + '. Members with nothing: ' + cnt(ms.filter(v => v <= 0).length) + ' (most of them joined recently).' + '
    Members in for 6 months or more: ' + cnt(older.length) + ', of whom ' + cnt(olderPaid.length) + ' (' + (older.length ? Math.round(100 * olderPaid.length / older.length) : 0) + '%) have been paid; their median is ' + $$(olderMed) + '.' @@ -755,6 +798,9 @@ document.getElementById('gJoins').addEventListener('input', e => { document.getElementById('gJoinsVal').textContent = e.target.value; }); document.getElementById('gGrowth').addEventListener('input', e => { document.getElementById('gGrowthVal').textContent = (Number(e.target.value) >= 0 ? '+' : '') + e.target.value + '%'; }); document.getElementById('gBuy').addEventListener('input', e => { document.getElementById('gBuyVal').textContent = e.target.value + '%'; }); + document.getElementById('gActive').addEventListener('input', e => { PLAN.active = Number(e.target.value) / 100; document.getElementById('gActiveVal').textContent = e.target.value + '%'; }); + document.getElementById('gTrain').addEventListener('input', e => { PLAN.train = Number(e.target.value) / 100; document.getElementById('gTrainVal').textContent = e.target.value + '%'; }); + document.getElementById('gPoolPts').addEventListener('change', e => { PLAN.pool = Number(e.target.value); const a = document.getElementById('gAdmin'); if (a) a.nextElementSibling.textContent = Math.round((PLAN.fee - PLAN.pool) * 100) + '% of every dollar in'; }); // ── plan controls ── function applyPlan(){ diff --git a/public/plan-lab.html b/public/plan-lab.html index d6d3e68..77494ae 100644 --- a/public/plan-lab.html +++ b/public/plan-lab.html @@ -180,9 +180,10 @@ details.adv.big summary{font-size:18px}

    How to read this page

    This is a working model of a compensation plan we have not launched. It is here so a few of us can pull the levers, see what the rules do to real people, and decide what to change. Nothing on it is a promise or a projection of what anyone will earn.

    -
    THE PLAN IN ONE BREATH

    Join for $20, climb an 8-step ladder

    Everyone enters for the same $20 (level 1). Each of the next seven levels is a product with a price: $40, $75, $125, $200, $300, $500, $750 (a working ladder from the $20 floor most members are already comfortable with). The company keeps 20% of every dollar; the other 80% is paid out person to person. You sit in a matrix four wide and eight deep under the person who recruited you.

    +
    THE PLAN IN ONE BREATH

    Join for $20, climb an 8-step ladder

    Everyone enters for the same $20 (level 1). Each of the next seven levels is a product with a price: $40, $75, $125, $200, $300, $500, $750 (a working ladder from the $20 floor most members are already comfortable with). The company keeps 15% of every dollar, 5% goes into a monthly activity pool, and the other 80% is paid out person to person. You sit in a matrix four wide and eight deep under the person who recruited you.

    WHO GETS PAID

    Two legs: your sponsor, then the depth

    Every level purchase is split. The sponsor leg (proposed 50%) follows the recruiter line: it pays the buyer\’s own sponsor if they hold that level and have two recruits, otherwise it buys that sponsor their missing level, otherwise it climbs the sponsor line. The depth leg (the rest) climbs the placement line to the first person above who holds the level and has two recruits; anyone behind on the way up gets a licence instead of being skipped. Entry money goes mostly to the recruiter (proposed three quarters), the rest to the upline directly above the placement.

    CASH VS LICENCE

    Two kinds of money

    cash goes to your wallet. A licence is a level you did not have to pay for, bought with money that reached you from below. Both are real value; only cash is spendable. Your reach equals your level: at level 3 you collect from depths 1 to 3 under you, and the first payment from depth 3 buys you level 4.

    +
    THE POOL

    5% of every dollar, split by doing

    Once a month the pool is split by shares: 1 share per day you used a tool (capped at 12), 20 shares for finishing the training in your first month, 4 shares to your sponsor when you do. Never from rank, never from recruiting counts. It is small money on purpose: a reason to open the app, finish the training and get paid every month even with no recruits.

    PLACEMENT

    Spread: one each before two

    New people land in their recruiter's organisation at the shallowest open spot, and among equals, under whoever has the fewest. Someone who arrives with no recruiter is assigned to a member who still needs a personal recruit. Both were decided on 28 Sep.

    What is on this page, in order

    @@ -194,9 +195,9 @@ details.adv.big summary{font-size:18px}
  • The ladder, in numbers. Price, company share and payout per level. The product names are placeholders until the real products are chosen.
  • Reading the numbers

    -

    Your income is cash plus your share of entry fees; licences are counted separately because they are levels, not dollars in hand. Admin wallet is the flat 20%, which does not change with any rule on this page. Members paid something counts anyone who received at least one dollar of cash or entry share. The join, growth and buy rates are guesses you should argue with: drag them and see what breaks. The model is deterministic, so the same settings always give the same result.

    +

    Your income is cash plus your share of entry fees; licences are counted separately because they are levels, not dollars in hand. Company is a flat 15% and the pool a flat 5%; neither changes with any routing rule on this page. Members paid something counts anyone who received at least one dollar of cash or entry share. The join, growth and buy rates are guesses you should argue with: drag them and see what breaks. The model is deterministic, so the same settings always give the same result.

    Decided so far, and what is still open

    -

    Decided: 4 wide, 8 levels, 20% company share, two recruits to receive cash (one recruit unlocks levels 2 and 3), fund-the-gap licences, licences reach everyone, spread placement, unsponsored entries assigned to members who need a recruit.
    Under review since 28 Sep (the builder problem): with every purchase paying one person by depth, a builder who brought 187 people in three months earned $1,544. So the page now runs a sponsor leg (a share of every purchase follows the recruiter line), sends most entry money to the recruiter, starts the ladder at $20, and offers a Fast Start at join. All four are switches in the plan controls; none is decided. Watch two numbers together: Heaviest builder this month in the story, and The mix under Who earned what, which shows builders and join-and-pay members side by side. The goal is a split both groups would stay for.
    Still open: the exact sponsor share and entry split; the ladder prices; whether a member with no recruits should receive level-2 cash from their own downline (the "Cash with no recruits" switch); the real products behind each level; a small operating-cost slice we have parked at zero.

    +

    Decided: 4 wide, 8 levels, 20% company share, two recruits to receive cash (one recruit unlocks levels 2 and 3), fund-the-gap licences, licences reach everyone, spread placement, unsponsored entries assigned to members who need a recruit.
    Agreed 28 Sep, working defaults: 15% company + 5% activity pool, sponsor leg 50% of every level purchase, three quarters of the entry to the recruiter, Fast Start (levels 1 to 3) at join, ladder $20 / 40 / 75 / 125 / 200 / 300 / 500 / 750. Why: with every purchase paying one person by depth, a builder who brought 187 people in three months earned $1,544; the sponsor leg fixes the builder, the pool gives the join-and-pay member something every month. All of it is still switchable in the plan controls. Watch three things together: Heaviest builder this month in the story, Where this month's money went, and The mix.
    Still open: whether a member with no recruits should receive level-2 cash from their own downline (the "Cash with no recruits" switch); the real products behind each level; a small operating-cost slice we have parked at zero.

    @@ -207,7 +208,8 @@ details.adv.big summary{font-size:18px}
    Month
    0
    members
    Your level
    1
    reach = depth 1 to 1
    Your income so far
    $0
    cash + entries; licences apart
    -
    Admin wallet so far
    $0
    20% of every purchase and entry
    +
    Company so far
    $0
    15% of every dollar in
    +
    Pool paid so far
    $0
    5% of every dollar, split by activity
    Members paid something
    0
    of the org
    Money in so far
    $0
    entries + levels bought
    @@ -219,9 +221,20 @@ details.adv.big summary{font-size:18px}
    +
    40%
    +
    50%
    +
    1. Press Start over to load the org, then run a month.
    +

    Where this month's money went

    +

    Every dollar that came in this month, by where it ended up. Licences are not a destination: money that funds a licence keeps climbing and ends as cash or company money, so it is shown as a note, not a slice.

    +
    +

    Three members, as of this month

    +

    The heaviest builder, a typical light builder (median of the 1 to 9 group) and a typical join-and-pay member (median of the no-recruits group, in for 3 months or more where possible). Paid in is their own money; got back is cash, entry shares and pool.

    +
    +

    The mix: builders and join-and-pay members side by side

    +
    Month by month, in numbers
    MonthJoinedMembersBought a levelMoney inAdminTo membersTo youYour levelPaid so farAt L2+
    @@ -353,6 +366,6 @@ details.adv.big summary{font-size:18px}

    Unlisted working page for planning. Not a member page, not an offer. Every number here is a mechanic, not a prediction.

    - +