calculate Salary