Jump to content

Just need a logic to calculate commission


watsmyname

Recommended Posts

Please look at an example below, it seems pretty easy, but it is driving me nuts. I m working on Multilevel networking project.

-  I wanted to calculate commission for each member for making members upto four levels.

-  If a person makes Corporate Members© then he get 10$ commission and if Individual(I) member are made then the person get $5 commission.

- And these commissions are calculated on the monthly basis. Suppose the first member is John, then he won't receive commission unless he makes 10 1st level members. After he reaches 10 1st level members(members may be C and I ), he receives commission and if he makes or his members makes more members he will get monthly commission.

-  Suppose in july he made 7 first level members then he won't receive commission.

-  In august, he makes 3 first level members, then his commission starts as his 1st level members reaches 10.

-  He then gets commissions from 2nd level, 3rd level and 4th level as well.

 

Levels

 

a) Level 1= The group of members made by himself

b) Level 2= The group of members made by the members of a)

c) Level 3= The group of members made by the members of b)

d) Level 4= The group of members made by the members of d)

 

Now, yesterday i wasted my whole day to break through with the logic for calculation, but still no output. Guys please any body give me a break through logic? I know i have to use recursive functions for these, but i just wanted the logic how it can be done?

 

Thanks in advance

watsmyname

 

 

Link to comment
Share on other sites

  • 2 weeks later...

I agree. It is also illegal in many places: Pyramid Scheme

 

 

It's usually only illegal in the US (as far as I know) if the only purpose of signing on more people is to take their money with no chance of them actually making money.  (Oooo!  Wikipedia words it better: "A pyramid scheme is a non-sustainable business model that involves the exchange of money primarily for enrolling other people into the scheme, often without any product or service being delivered.")

 

 

Then again, he hasn't exactly told us that his site will not work like that....

Link to comment
Share on other sites

It's usually only illegal in the US (as far as I know)

 

From WikiPedia:

Pyramid schemes are illegal in many countries, including the United States, the United Kingdom, France, Germany, Canada, Romania, Colombia, Malaysia, Poland, Norway, Bulgaria, Australia, New Zealand, Japan, Italy, Nepaltation needed], Iceland, Philippines, South Africa Sri Lanka, Thailand, Iran, the People's Republic of China, Mexico, Portugal and The Netherlands

 

Then again, he hasn't exactly told us that his site will not work like that....

 

I could be wrong, but it looks pretty obvious to me that what he is wanting to accomplish is exactly like a pyramid scheme. Granted, it may not be illegal where he is from, but it would be shady nonetheless.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.