create lottery calculate function for 2-to-1