How workers' compensation costs are calculated