Bash Script Check Environment Variable Value Calculator