Implementation of salary calculation