Calculation of commission and total sales