Calculation of odds and probability