calculating salary without editing