Bash Function Example Math Questions