First of all apologies, this is not a complex mathematical problem (I don't think) but I could not find any active math forums out there.
I am having difficulties coming up with a formula. Lets say I am running a restaurant, and I have 3 employees. The tips for the week is $\$600$.
Employee A is entitled to $60\%$ of the tips because they have more responsibility. Employees B and C are entitled to $40\%$ of the tips.
So with this assumption, Employee A would get $\$360$ and Employees B and C would get $\$120$ each.
That's simple enough, but we also need to take hours worked into account. Lets say employee A worked $20$ hours that week, but Employees $B$ and $C$ worked $40$ hours. So if we done it based on hours, Employee A would get $(600/100)*20=\$120$, whilst the other 2 got $\$240$ each.
Now the question is whether there is a way to combine the two? So Employee A has more responsibility, so should get more per hour from the tips. So on equal terms, $\$600/100\text{ total hours}=\$6$ per hour worked.
Now I don't know if this is right, but to change this figure, I done
$\$6+60\%=\$9.6$
$\$6-40\%=\$2.4$
But this seems like too much of a difference now between the two, and when I apply this to hours worked for all employees it does not add up to $\$600$.
I hope I am making this clear, quite difficult to explain, but I am trying to distribute tips based on hours worked and percentage of responsibility.
What would be the best way to achieve this?