min is now either 0 or 30 days and max is not max as that is max int
added historical and date range