$ending = $1 - 1;
} elsif ( $cgi->param('ending') =~ /^([ 0-9\-\/]{1,64})$/ ) {
#probably need an option to turn off the + 86399
$ending = $1 - 1;
} elsif ( $cgi->param('ending') =~ /^([ 0-9\-\/]{1,64})$/ ) {
#probably need an option to turn off the + 86399