The calculation of bonuses can vary based on the type and purpose. For performance bonuses, companies typically use a formula that considers the employee’s base salary, their performance rating, and the company's overall financial performance. For profit-sharing bonuses, a predetermined percentage of the company's profits is distributed among eligible employees.