Bash: Move calc funtion into its own file