๐Ÿ“Š MLM Commission Testing & Audit Tool

Professional-grade calculator to test, verify and debug MLM compensation plans

โœ“ Step-by-step testing guides | โœ“ Criteria checklists | โœ“ Enhanced debugging | โœ“ SQL helpers

For any query call +917833891925 for Free assistance

๐ŸŽฏ Welcome to MLM Commission Audit Tool developed by WebGTR

This professional-grade tool helps you test and verify MLM commission calculations to detect bugs, discrepancies, and system errors before they cost you money.

๐Ÿ“‹ How to Use This Tool:

  1. Select Income Type: Choose the tab for the income you want to test (Direct, Level, ROI, or Binary)
  2. Follow Testing Steps: Each calculator includes step-by-step instructions to properly set up your test scenario
  3. Complete Criteria Checklist: Check all boxes to confirm you've met the prerequisites before calculating
  4. Enter Test Data: Fill in the input fields (yellow background) with your actual system values
  5. Calculate Expected Result: Click the calculate button to see what the commission SHOULD be
  6. Verify Actual Output: Enter what your system actually paid in the verification section
  7. Identify Issues: If there's a discrepancy, review the detailed debugging reasons provided
  8. Fix & Re-test: Fix the bug in your system and run the test again to verify

๐Ÿ“Š What Each Calculator Tests:

  • ๐ŸŽฏ Direct Income: Tests commission from direct referrals/sponsorships. Verifies sponsor tracking, commission percentages, and eligibility criteria.
  • ๐Ÿ“Š Level Income: Tests multi-level/generation commissions (3 levels deep). Validates genealogy tree structure, level counting, and percentage distribution.
  • ๐Ÿ’ฐ ROI Income: Tests investment return payouts. Checks period calculations (daily/weekly/monthly), cron jobs, and activation logic.
  • โš–๏ธ Binary Income: Tests binary pairing income using weaker leg logic. Validates tree structure, pair matching, capping, and carry forward.
  • ๐Ÿ† Rank & Rewards: Tests rank qualification and achievement rewards based on team performance.

๐Ÿ› Common Bugs This Tool Detects:

  • โŒ Wrong Commission Percentages: Database or config file has incorrect percentage values
  • โŒ Incorrect Genealogy Level Counting: Level 2 users being counted as Level 1
  • โŒ Binary Weaker Leg Not Used: System using stronger leg instead of weaker (critical bug!)
  • โŒ ROI Period Confusion: Daily ROI being calculated as monthly or vice versa
  • โŒ Missing Carry Forward: Binary carry forward points not tracked to next cycle
  • โŒ Sponsor Tracking Failed: Referral links not properly assigning sponsor_id
  • โŒ Commission Not Propagating: Upline not receiving commissions from downline activities
  • โŒ Cron Job Not Running: ROI scheduler not executing or timing wrong
  • โŒ Duplicate Payment Prevention: Logic blocking legitimate payouts
  • โŒ Wallet Balance Update Failed: Commission calculated but not credited to wallet

โœ… New Features in This Version:

  • ๐Ÿงช Step-by-Step Testing Guides: Detailed instructions for testing each income type
  • โ˜‘๏ธ Criteria Checklists: Ensure all prerequisites are met before testing
  • ๐Ÿ› Enhanced Debugging: Comprehensive list of possible reasons for discrepancies
  • ๐Ÿ’ป SQL Query Helpers: Sample queries to help you debug your database
  • ๐ŸŽฏ User-Focused Scenarios: Test with User A, B, C scenarios for clarity
  • ๐Ÿ“ Better Input Labels: More descriptive field names that make sense

๐Ÿ’ก Tips for Best Results:

  • Create Test Users: Don't test with production data. Create User A, B, C, etc. specifically for testing
  • Start Simple: Begin with Direct Income (easiest to test) before moving to complex Binary Income
  • Document Everything: Take screenshots of expected vs actual results for developer reference
  • Test Edge Cases: Try zero values, very large numbers, decimal amounts, negative scenarios
  • Run Regular Audits: Test before major commission payouts or after code changes
  • Check Database Directly: Use provided SQL queries to verify data at database level
  • Verify Prerequisites: Always complete the criteria checklist - most bugs are due to unmet prerequisites

๐Ÿš€ Who Should Use This Tool:

  • MLM Company Owners: Audit your system before going live or making payouts
  • MLM Software Developers: Test your commission logic during development
  • Quality Assurance Teams: Comprehensive testing of commission modules
  • System Administrators: Troubleshoot commission discrepancies reported by users
  • Independent Auditors: Verify MLM system accuracy for compliance
โš ๏ธ Important Note: This tool calculates what commissions SHOULD be based on standard MLM formulas. Your system might have custom business rules, caps, or conditions. Always cross-reference with your system's specific logic and requirements.
๐Ÿ’ผ Professional Assistance: If you find bugs in your MLM system and need expert help to fix them, or if you need a custom MLM platform built from scratch, contact a professional MLM software developer with 9+ years of experience in MLM systems.

Direct Referral Income Calculator

Test direct sponsorship commission calculations

๐Ÿงช Step-by-Step Testing Process

  1. Step 1: Register User A in your MLM system (this will be the sponsor)
  2. Step 2: Copy User A's referral/sponsor link from their dashboard
  3. Step 3: Open the referral link and register User B (new member)
  4. Step 4: Login as User B and purchase a package (e.g., $10,000)
  5. Step 5: Verify User A meets all eligibility criteria (check boxes below)
  6. Step 6: Check User A's wallet/commission section for direct income
  7. Step 7: Compare actual amount with calculated amount below

โœ… Pre-Calculation Criteria (Check all that apply)

๐Ÿ“Š Commission Calculator

๐Ÿ“Š Calculation Results

Commission Per Referral
$0.00
Expected Commission for User A
$0.00
๐Ÿ” Actual System Output Verification
Difference (System - Expected)
$0.00
๐Ÿ’ก Debugging Tips:
  • Check your database's `commission_transactions` or `income_history` table for the entry
  • Look at backend logs during User B's package purchase
  • Verify the direct income percentage in admin settings
  • Test with a simple package amount like $1000 for easier debugging

Level/Generation Income Calculator

Test multi-level commission calculations

๐Ÿงช Step-by-Step Testing Process

  1. Step 1: Register User A (Root user for testing)
  2. Step 2: Use A's referral link to register Users B, C, D (Level 1 - Direct to A)
  3. Step 3: Use B's link to register Users E, F (Level 2 - Grandchildren of A)
  4. Step 4: Use C's link to register Users G, H (Also Level 2 to A)
  5. Step 5: Use E's link to register Users I, J (Level 3 - Great-grandchildren of A)
  6. Step 6: Purchase packages from Level 1, 2, and 3 users
  7. Step 7: Check User A's level income breakdown in system
  8. Step 8: Verify genealogy tree shows correct parent-child relationships

โœ… Pre-Calculation Criteria (Check all that apply)

๐Ÿ“Š Commission Calculator

๐Ÿ“ Level 1 (Direct Referrals of User A)
๐Ÿ“ Level 2 (Referrals of Level 1 Users)
๐Ÿ“ Level 3 (Referrals of Level 2 Users)

๐Ÿ“Š Calculation Results

Level 1 Income
$0.00
Level 2 Income
$0.00
Level 3 Income
$0.00
Total Expected Level Income for User A
$0.00
๐Ÿ” Actual System Output Verification
Difference (System - Expected)
$0.00
๐Ÿ’ก Debugging SQL Query:

To verify level counting, run this query (adjust table names):

SELECT u.id, u.name, u.sponsor_id,
(SELECT COUNT(*) FROM users WHERE sponsor_id = [USER_A_ID]) as level1_count,
(SELECT COUNT(*) FROM users WHERE sponsor_id IN (SELECT id FROM users WHERE sponsor_id = [USER_A_ID])) as level2_count

ROI Income Calculator

Test return on investment payout calculations

๐Ÿงช Step-by-Step Testing Process

  1. Step 1: Register User A and login
  2. Step 2: Purchase an ROI/Investment package (e.g., $50,000)
  3. Step 3: Note the purchase date and time (ROI start date)
  4. Step 4: Check admin panel for ROI settings (percentage, period, duration)
  5. Step 5: Wait for first payout cycle OR manually run cron job/scheduler
  6. Step 6: Check User A's ROI income history for credited amount
  7. Step 7: Verify ROI is being credited at correct intervals (daily/weekly/monthly)
  8. Step 8: Test for 2-3 cycles to ensure consistency

โœ… Pre-Calculation Criteria (Check all that apply)

๐Ÿ“Š ROI Calculator

๐Ÿ“Š Calculation Results

Per-Period ROI Payout
$0.00
Total Periods
0
Total ROI Over Duration
$0.00
Total Return %
0.00%
๐Ÿ” Actual System Output Verification
Difference (System - Expected Per Period)
$0.00
โš ๏ธ Legal Warning: High ROI schemes may be illegal in many jurisdictions. Ensure compliance with local laws and regulations.
๐Ÿ’ก Testing Tip:
  • For testing, manually change `roi_start_date` to yesterday in database to trigger immediate payout
  • Check Laravel scheduler: php artisan schedule:list
  • Manually run ROI cron: php artisan roi:distribute (if command exists)
  • Look in database table: roi_transactions or roi_history for records

Binary Income Calculator

Test binary pairing commission calculations

๐Ÿงช Step-by-Step Testing Process

  1. Step 1: Register User A (will be root of binary tree)
  2. Step 2: Place User B on LEFT position under User A
  3. Step 3: Place User C on RIGHT position under User A
  4. Step 4: Continue building tree by placing more users under B and C
  5. Step 5: Purchase packages from left leg users (this creates points/volume)
  6. Step 6: Purchase packages from right leg users
  7. Step 7: Check User A's binary income and leg volumes
  8. Step 8: Verify system shows correct left volume, right volume, and pairs matched
  9. Step 9: Verify carry forward points (stronger leg excess) is tracked for next cycle
๐Ÿ”‘ Binary Concept: Income is calculated based on the weaker leg. If left leg = 1000 points and right leg = 800 points, you earn on 800 pairs only. The extra 200 points from left leg carry forward to next cycle.

โœ… Pre-Calculation Criteria (Check all that apply)

๐Ÿ“Š Binary Income Calculator

๐Ÿ“Š Calculation Results

Weaker Leg Volume
0 points
Income calculated on this
Total Pairs Matched
0 pairs
Avg Pairs Per Day
0.00
Carry Forward Points
0 points
Moved to next cycle
Expected Total Binary Income
$0.00
๐Ÿ” Actual System Output Verification
Difference (System - Expected)
$0.00
๐Ÿ’ก Debugging SQL Queries:

Check left/right leg volumes:

SELECT position, SUM(points) as total_points
FROM binary_tree
WHERE parent_id = [USER_A_ID]
GROUP BY position

Rank & Rewards Calculator

Determine current rank and next rank requirements

Note: This uses example rank criteria. Results will vary based on your actual MLM plan.

๐Ÿ† Your Rank Analysis

๐Ÿ‘ค
Current Rank
MEMBER
Achievement Reward
$0
Next Rank Target
BRONZE
๐Ÿ“Š Requirements for Next Rank:

3 direct, 10 team, $1L sales

๐Ÿ“‹ Rank Criteria Reference Table

Rank Direct Refs Team Size Team Sales Reward
๐Ÿ‘ค MEMBER 0-2 0-9 <$1L $0
๐Ÿฅ‰ BRONZE 3+ 10+ $1L+ $5,000
๐Ÿฅˆ SILVER 5+ 25+ $2.5L+ $10,000
๐Ÿฅ‡ GOLD 7+ 50+ $5L+ $25,000
๐Ÿ’Ž DIAMOND 10+ 100+ $10L+ $50,000