MLM Income Calculator




 

MLM One Leg Calculator

Months:
1

Commission per Member:

<!DOCTYPE html>
<html>
<head>

<title>MLM Income Calculator</title>

<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>

<style>

body{
font-family:Arial;
background:#f4f6f9;
padding:30px;
}

.container{
max-width:900px;
margin:auto;
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 0 10px rgba(0,0,0,0.1);
}

h2{
text-align:center;
}

input{
padding:10px;
margin:10px;
width:150px;
}

button{
padding:10px 20px;
background:#28a745;
color:white;
border:none;
border-radius:5px;
cursor:pointer;
}

table{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

table th, table td{
border:1px solid #ddd;
padding:8px;
text-align:center;
}

th{
background:#28a745;
color:white;
}

.warning{
color:red;
font-weight:bold;
}

</style>

</head>

<body>

<div class="container">

<h2>One Leg MLM Income Calculator</h2>

Monthly Recruitment Required:  
<input type="number" id="recruit" value="1">

Commission per Member (₹):  
<input type="number" id="commission" value="1000">

<button onclick="calculate()">Calculate Projection</button>

<table id="resultTable">
<tr>
<th>Month</th>
<th>Total Team</th>
<th>Expected Commission</th>
<th>Status</th>
</tr>
</table>

<canvas id="incomeChart"></canvas>

</div>

<script>

function calculate(){

let recruit = document.getElementById("recruit").value;
let commission = document.getElementById("commission").value;

let table = document.getElementById("resultTable");

table.innerHTML = `
<tr>
<th>Month</th>
<th>Total Team</th>
<th>Expected Commission</th>
<th>Status</th>
</tr>`;

let labels = [];
let incomeData = [];

for(let m=1;m<=20;m++){

let team = Math.pow(2,m);

let income = team * commission;

let status = "Qualified";

if(recruit < 1){
status = "No Commission";
income = 0;
}

table.innerHTML += `
<tr>
<td>${m}</td>
<td>${team}</td>
<td>₹${income.toLocaleString()}</td>
<td>${status}</td>
</tr>
`;

labels.push("Month "+m);
incomeData.push(income);

}

drawChart(labels,incomeData);

}

function drawChart(labels,data){

const ctx = document.getElementById('incomeChart');

new Chart(ctx,{
type:'line',
data:{
labels:labels,
datasets:[{
label:'Projected Income',
data:data,
borderWidth:2
}]
},
options:{
responsive:true
}
});

}

</script>

</body>
</html>

Shopping Cart