Update the code for the 'CalculateCommission' method to pass the test