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 = '
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 = '' + + '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 ? '' : '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 + '
| Group | Members | Paid anything | Median got back | Average | Top | Avg paid in | Got pool | Pool total | Licences |
|---|
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.
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.
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.
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 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.
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.
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.
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: 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.
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.
+ +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.
+ +| Month | Joined | Members | Bought a level | Money in | Admin | To members | To you | Your level | Paid so far | At L2+ |
|---|
Unlisted working page for planning. Not a member page, not an offer. Every number here is a mechanic, not a prediction.
- +