factor out single day range setting
cleanup