$OPTS{day_limit} can be used instead of function argument.
$OPTS{day_limit} can be used instead of function argument.