Setup up commission based on Quota and Profit Margin on Sales Order.
Example: Monthly Quota is 500K, and Profit Margin On line is more than 30% then give 3% commission to employee
If Profit Margin is 40% then give 4% commission. Commission will be calculated on Amount paid on Sales Order.