Special cases in calculation of salaries