how bonus is calculated