I got a project in MLM matrix plan.
I decided to develop that project in pHp.
In this plan they have three legs.
In every leg, if 1:1:1 ratio exist, then they will get paid.
Please tell me, how calculate the ratio.
I don't need code.
I need only the logic behind this process.
Any link or documentation will be helpful.