I'm about to work on a new project on sales commission. What are the most common functions and peculiar functions that you have come across for commission calculation? I would like to gather some ideas so that when the project starts it'd be easier to do.