plan-lab: activity pool (15% company + 5% pool), money-flow bar, three example members, the mix table
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
+69
-23
@@ -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 = '<li class="head">' + (seed === 'iap' ? 'Start: the InstantAdPay org today, placed 4-wide under each member\u2019s real recruiter: <b>' + cnt(G.members.length - 1) + ' members</b>, ' + 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 <b>' + $$(G.replay.in) + '</b>, put <b>' + $$(G.replay.admin) + '</b> in the admin wallet and <b>' + $$(G.replay.you) + '</b> 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.</li>';
|
||||
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('<b>Month ' + G.month + '.</b> ' + 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 <b>' + $$(s.in) + '</b>: admin wallet <b>' + $$(s.admin) + '</b>, the rest to members' + (s.above ? ' (' + $$(s.above) + ' climbed past you to the company)' : '') + '. You: <b>' + (dYou >= 0 ? '+' : '') + $$(dYou) + '</b>' + (s.youLevel > prev.youLevel ? ', and your team moved you to <span class="chip lic">level ' + s.youLevel + '</span>' : '') + '. ' + cnt(s.paid) + ' of ' + cnt(s.members) + ' members have been paid something; ' + cnt(s.l2) + ' are past level 1.' + (s.top ? ' <b>Heaviest builder this month:</b> #' + s.top.id + ' brought ' + cnt(s.top.n) + ' and made <b>' + $$(s.top.m) + '</b> 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 <b>' + $$(s.b20.avg) + '</b> this month.' : '') + (s.sp ? ' Sponsor leg paid ' + $$(s.sp) + ' this month.' : ''), s.youLevel > prev.youLevel ? 'lic' : 'cash');
|
||||
storyG('<b>Month ' + G.month + '.</b> ' + 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 <b>' + $$(s.in) + '</b>: company <b>' + $$(s.admin) + '</b>, pool <b>' + $$(s.pool) + '</b>, the rest to members' + (s.above ? ' (' + $$(s.above) + ' climbed past you to the company)' : '') + '. You: <b>' + (dYou >= 0 ? '+' : '') + $$(dYou) + '</b>' + (s.youLevel > prev.youLevel ? ', and your team moved you to <span class="chip lic">level ' + s.youLevel + '</span>' : '') + '. ' + cnt(s.paid) + ' of ' + cnt(s.members) + ' members have been paid something; ' + cnt(s.l2) + ' are past level 1.' + (s.top ? ' <b>Heaviest builder this month:</b> #' + s.top.id + ' brought ' + cnt(s.top.n) + ' and made <b>' + $$(s.top.m) + '</b> 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 <b>' + $$(s.b20.avg) + '</b> this month.' : '') + (s.sp ? ' Sponsor leg paid ' + $$(s.sp) + ' this month.' : '') + (s.poolPaid ? ' <b>Pool:</b> ' + $$(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 = '<p class="note">Run a month.</p>'; 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 = '<div style="display:flex;height:34px;border-radius:8px;overflow:hidden;border:1px solid var(--line)">' + parts.filter(p => p[1] > 0).map(p => '<div title="' + p[0] + ' ' + $$(p[1]) + '" style="width:' + (100 * p[1] / tot).toFixed(2) + '%;background:' + p[2] + '"></div>').join('') + '</div>'
|
||||
+ '<div style="display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:8px" class="note">' + parts.map(p => '<span><i style="display:inline-block;width:10px;height:10px;border-radius:2px;background:' + p[2] + ';margin-right:6px;vertical-align:middle"></i>' + p[0] + ' <b>' + $$(p[1]) + '</b> (' + Math.round(100 * p[1] / tot) + '%)</span>').join('') + '</div>'
|
||||
+ '<p class="note" style="margin-top:6px">Money in this month <b>' + $$(s.in) + '</b>. Along the way ' + cnt(s.lics) + ' licences were funded, worth ' + $$(s.licV) + ' of levels nobody had to pay for.</p>';
|
||||
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 ? '' : '<div class="rule"><div class="n">' + title + '</div><h3>#' + x.id + ' \u00b7 level ' + x.level + ' \u00b7 ' + cnt(x.directs) + ' recruit' + (x.directs === 1 ? '' : 's') + '</h3><p>In since month ' + x.month + '. Paid in <b>' + $$(x.spent) + '</b>. Got back <b>' + $$(inc(x)) + '</b>: 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) + '. <b>Net ' + (inc(x) - x.spent >= 0 ? '+' : '\u2212') + $$(Math.abs(inc(x) - x.spent)) + '</b>' + (x.licV ? ' in cash, ' + (inc(x) + x.licV - x.spent >= 0 ? '+' : '\u2212') + $$(Math.abs(inc(x) + x.licV - x.spent)) + ' counting licences' : '') + '.</p><p class="note">' + why + '</p></div>';
|
||||
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) => '<tr><td style="text-align:left">' + name + '</td><td>' + cnt(g.n) + '</td><td>' + (g.n ? Math.round(100 * g.paid / g.n) : 0) + '%</td><td>' + $$(g.median) + '</td><td>' + $$(g.avg) + '</td><td>' + $$(g.top) + '</td><td>' + $$(g.n ? g.spent / g.n : 0) + '</td><td>' + cnt(g.poolPaid) + '</td><td>' + $$(g.pool) + '</td><td>' + cnt(g.lic) + '</td><td class="bar"><i style="width:' + Math.min(100, Math.round(100 * g.avg / Math.max(1, s.heavy.avg))) + '%"></i></td></tr>';
|
||||
document.getElementById('gMix').innerHTML = '<table class="tabular"><thead><tr><th style="text-align:left">Group</th><th>Members</th><th>Paid anything</th><th>Median got back</th><th>Average</th><th>Top</th><th>Avg paid in</th><th>Got pool</th><th>Pool total</th><th>Licences</th><th></th></tr></thead><tbody>' + row('Builders, 10+ recruits', s.heavy) + row('Light builders, 1 to 9', s.light) + row('Join-and-pay, no recruits', s.passive) + '</tbody></table>';
|
||||
}
|
||||
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 = '<td>' + r.month + '</td><td>' + cnt(r.joins) + '</td><td>' + cnt(r.members) + '</td><td>' + cnt(r.buys) + '</td><td>' + $$(r.in) + '</td><td>' + $$(r.admin) + '</td><td>' + $$(r.in - r.admin - r.above) + '</td><td>' + $$(r.toYou) + '</td><td>' + r.youLevel + '</td><td>' + cnt(r.paid) + '</td><td>' + cnt(r.l2) + '</td>'; 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: <b>' + $$(ms[0] || 0) + '</b>. Top 10% of members took ' + (all ? Math.round(100 * top10 / all) : 0) + '% of what members received. Median member: <b>' + $$(pct(0.5)) + '</b>. Members with nothing: ' + cnt(ms.filter(v => v <= 0).length) + ' (most of them joined recently).'
|
||||
+ '<br><b>Members in for 6 months or more:</b> ' + cnt(older.length) + ', of whom ' + cnt(olderPaid.length) + ' (' + (older.length ? Math.round(100 * olderPaid.length / older.length) : 0) + '%) have been paid; their median is <b>' + $$(olderMed) + '</b>.'
|
||||
@@ -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(){
|
||||
|
||||
+18
-5
@@ -180,9 +180,10 @@ details.adv.big summary{font-size:18px}
|
||||
<h2>How to read this page</h2>
|
||||
<p class="note">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.</p>
|
||||
<div class="rules" style="margin-top:12px">
|
||||
<div class="rule"><div class="n">THE PLAN IN ONE BREATH</div><h3>Join for $20, climb an 8-step ladder</h3><p>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.</p></div>
|
||||
<div class="rule"><div class="n">THE PLAN IN ONE BREATH</div><h3>Join for $20, climb an 8-step ladder</h3><p>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.</p></div>
|
||||
<div class="rule"><div class="n">WHO GETS PAID</div><h3>Two legs: your sponsor, then the depth</h3><p>Every level purchase is split. <b>The sponsor leg</b> (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. <b>The depth leg</b> (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 <span class="chip lic">licence</span> instead of being skipped. Entry money goes mostly to the recruiter (proposed three quarters), the rest to the upline directly above the placement.</p></div>
|
||||
<div class="rule"><div class="n">CASH VS LICENCE</div><h3>Two kinds of money</h3><p><span class="chip cash">cash</span> goes to your wallet. A <span class="chip lic">licence</span> 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 <b>reach</b> 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.</p></div>
|
||||
<div class="rule"><div class="n">THE POOL</div><h3>5% of every dollar, split by doing</h3><p>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.</p></div>
|
||||
<div class="rule"><div class="n">PLACEMENT</div><h3>Spread: one each before two</h3><p>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.</p></div>
|
||||
</div>
|
||||
<h3 style="margin-top:18px">What is on this page, in order</h3>
|
||||
@@ -194,9 +195,9 @@ details.adv.big summary{font-size:18px}
|
||||
<li><b>The ladder, in numbers.</b> Price, company share and payout per level. The product names are placeholders until the real products are chosen.</li>
|
||||
</ol>
|
||||
<h3 style="margin-top:18px">Reading the numbers</h3>
|
||||
<p class="note"><b>Your income</b> is cash plus your share of entry fees; licences are counted separately because they are levels, not dollars in hand. <b>Admin wallet</b> is the flat 20%, which does not change with any rule on this page. <b>Members paid something</b> 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.</p>
|
||||
<p class="note"><b>Your income</b> is cash plus your share of entry fees; licences are counted separately because they are levels, not dollars in hand. <b>Company</b> is a flat 15% and the <b>pool</b> a flat 5%; neither changes with any routing rule on this page. <b>Members paid something</b> 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.</p>
|
||||
<h3 style="margin-top:18px">Decided so far, and what is still open</h3>
|
||||
<p class="note"><b>Decided:</b> 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.<br><b>Under review since 28 Sep (the builder problem):</b> 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 <b>sponsor leg</b> (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: <i>Heaviest builder this month</i> in the story, and <i>The mix</i> 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.<br><b>Still open:</b> 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.</p>
|
||||
<p class="note"><b>Decided:</b> 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.<br><b>Agreed 28 Sep, working defaults:</b> 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: <i>Heaviest builder this month</i> in the story, <i>Where this month's money went</i>, and <i>The mix</i>.<br><b>Still open:</b> 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.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
@@ -207,7 +208,8 @@ details.adv.big summary{font-size:18px}
|
||||
<div><div class="k">Month</div><div class="v" id="gMonth">0</div><div class="s" id="gMembers">members</div></div>
|
||||
<div><div class="k">Your level</div><div class="v" id="gLevel">1</div><div class="s" id="gLevelS">reach = depth 1 to 1</div></div>
|
||||
<div><div class="k">Your income so far</div><div class="v cash" id="gYou">$0</div><div class="s" id="gYouS">cash + entries; licences apart</div></div>
|
||||
<div><div class="k">Admin wallet so far</div><div class="v" id="gAdmin">$0</div><div class="s">20% of every purchase and entry</div></div>
|
||||
<div><div class="k">Company so far</div><div class="v" id="gAdmin">$0</div><div class="s">15% of every dollar in</div></div>
|
||||
<div><div class="k">Pool paid so far</div><div class="v" id="gPool">$0</div><div class="s" id="gPoolS">5% of every dollar, split by activity</div></div>
|
||||
<div><div class="k">Members paid something</div><div class="v" id="gPaid">0</div><div class="s" id="gPaidS">of the org</div></div>
|
||||
<div><div class="k">Money in so far</div><div class="v" id="gIn">$0</div><div class="s">entries + levels bought</div></div>
|
||||
</div>
|
||||
@@ -219,9 +221,20 @@ details.adv.big summary{font-size:18px}
|
||||
<div class="ctl"><label> </label><button class="primary" id="gRun1">Run one month</button></div>
|
||||
<div class="ctl"><label> </label><button id="gRun6">Run 6 months</button></div>
|
||||
<div class="ctl"><label> </label><button id="gRun12">Run 12 months</button></div>
|
||||
<div class="ctl"><label for="gActive">Members who use a tool in a month (pool shares)</label><input id="gActive" type="range" min="10" max="90" step="5" value="40"><span class="val" id="gActiveVal">40%</span></div>
|
||||
<div class="ctl"><label for="gTrain">New members who finish training in month 1</label><input id="gTrain" type="range" min="0" max="100" step="5" value="50"><span class="val" id="gTrainVal">50%</span></div>
|
||||
<div class="ctl"><label for="gPoolPts">Pool, out of the 20 fee points</label><select id="gPoolPts"><option value="0">0 (company keeps 20%)</option><option value="0.05" selected>5 (company keeps 15%)</option><option value="0.1">10 (company keeps 10%)</option></select></div>
|
||||
<div class="ctl"><label> </label><button id="gReset">Start over</button></div>
|
||||
</div>
|
||||
<ol class="story" id="gStory"><li class="head">Press Start over to load the org, then run a month.</li></ol>
|
||||
<h3 style="margin-top:18px">Where this month's money went</h3>
|
||||
<p class="note">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.</p>
|
||||
<div id="gFlow"></div>
|
||||
<h3 style="margin-top:18px">Three members, as of this month</h3>
|
||||
<p class="note">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.</p>
|
||||
<div class="rules" id="gPeople"></div>
|
||||
<h3 style="margin-top:18px">The mix: builders and join-and-pay members side by side</h3>
|
||||
<div class="tablewrap" id="gMix"></div>
|
||||
<details class="adv"><summary>Month by month, in numbers</summary>
|
||||
<div class="tablewrap"><table id="gTable" class="tabular"><thead><tr><th>Month</th><th>Joined</th><th>Members</th><th>Bought a level</th><th>Money in</th><th>Admin</th><th>To members</th><th>To you</th><th>Your level</th><th>Paid so far</th><th>At L2+</th></tr></thead><tbody></tbody></table></div>
|
||||
</details>
|
||||
@@ -353,6 +366,6 @@ details.adv.big summary{font-size:18px}
|
||||
|
||||
|
||||
<p class="fine">Unlisted working page for planning. Not a member page, not an offer. Every number here is a mechanic, not a prediction.</p>
|
||||
<script src="/assets/plan-lab.js?v=20260928-0858"></script>
|
||||
<script src="/assets/plan-lab.js?v=20260928-0931"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user