Good point. I tried it without it, and for some reason it didn't work. I didn't feel like figuring out why, so I left it. (My excuse was that in the future using an env var could let me set my default checking duration for the day/session without editing and reloading my .bashrc; obviously I'd have to check whether it was already set rather than just overwriting it, though.)
export DURATION="${1:-1m}"
it should be just
DURATION="${1:-1m}"
“export” is a keyword that makes a variable available to subprocesses.