Calculating the amount each user need to transfer to the payer
Renaming variable and fixing typos
Tests of sharing logic refactored