Fixing the calculation of commission after having more than one contract on trades