Implement calculateCommission