account for next midnight