Please feel free to correct the title. I know it's confusing.
I have the following scenario:
- contributions to project by agent A = 2
- contributions to project by agent B = 33
- contributions to project by agent C = 190
- contributions to project by agent D = 5
- contributions to project by agent E = 33
- project made $5000
What is the formula to calculate the percentage of those $5000 that each of the above agents should be rewarded with, based on the number of contributions that each of them made ?
I'm looking for a generic formula, not one that applies to my scenario only.
Thank you in advance for your help :)