The following are examples of custom expressions used in the Expression Builder for bonus calculations:
Example 1: Custom expression using multiplicative bonus factors instead of additive factors
return Eligible Salary * Target Percentage * Company Performance Bonus Factor * Company Performance Weight * Individual Performance Bonus Factor * Individual Performance Weight;
This expression calculates an employee’s total bonus payout by combining several weighted performance components. It multiplies the employee’s eligible salary and target bonus percentage by both organization and individual performance results, each adjusted by their respective weights (how much each contributes to the total bonus).
Example 2: Custom expression when the bonus payout depends on the value of a bonus factor
If (Corporate Performance Payout Factor > 0.80)
{return Eligible Salary * Target Percentage * Business Unit Performance Bonus Factor * Business Unit Performance Weight * Individual Performance Bonus Factor * Individual Performance Weight;}
else
{return 0;}
This expression means that a bonus is only paid if the corporate performance payout factor exceeds 80%. If it does, the total payout is calculated using the eligible salary, target percentage, and the weighted business unit and individual performance factors. Otherwise, the payout is zero.
Example 3: Custom expression using payout factors for sales achievement
If (Sales Achieved Payout Factor >= 0.90) {
return Eligible Salary * 0.15;
} else if (Sales Achieved Payout Factor >= 0.50 && Sales Achieved Payout Factor < 0.90) {
return Eligible Salary * 0.10;
} else {
return Eligible Salary * 0.05;
}
This expression means that:
- If the sales achieved payout factor is 90% or higher, the payout is 15% of the eligible salary.
- If it is between 50% and 90%, the payout is 10% of the eligible salary.
- If it is below 50%, the payout is 5% of the eligible salary.
Example 4: Custom expression using complex business rules
If the organization’s profit exceeds $5,000,000, the company performance payout factor is 50% in the compensation metrics.
Profit Sharing Bonus = Eligible Salary * Company Performance Payout Factor;
Individual Bonus = Eligible Salary * Target Percentage * Individual Performance Payout Factor;
if (Company Performance Payout Factor >= 0.5)
return (Profit Sharing Bonus + Individual Bonus);
else
return Individual Bonus;
This expression means that when the company performance payout factor is 50% or higher, the employee receives both the profit sharing bonus and the individual bonus. If the factor is below 50%, only the individual bonus is paid.