How to calculate commission on a betting exchange