formula for computing different type of commision​