How to Split up profits into an investment ratio

How to Split up profits into an investment ratio

Imagine having multiple people invest different sums of money into a business. If the business earns profit, how do you split up those proceeds for the investors?