Formules for calculation of commission for sales person

Hi every body

i want to ask about the method to link between sales and salary structure for sales person employee …

i don’t know how to pay to my employees their commission on sales