How is the cost of buying leave calculated?

Costs are calculated on a per-employee basis and depend on salary and tax brackets.