Calculate basic pay with all definitions. not working