Calculate Commodity Contracts Optimal Number