My reward splitting function is:
[Total.hashrate] / [ Home.hashrate ] * 100
Then I check with the decimals and round up.