An inefficient way to calculate commissions