Commission based on percentage of profit

Hi Everyone,

I know this has been asked before but I can’t find a definite answer.

I’d like to set the sales persons commission to calculate based on a percentage of the profit rather than the total amount.

Thanks