In addition to translating the interval string into number of seconds, $duration can take an integer number of seconds and translate it into weeks/days/hrs/mins/secs

'return' is a way that a custom alias can behave like an $identifier. When the alias ends with 'return %variable", $myalias returns the value of the %variable to whatever called the alias.