use maxDate instead of current Date as last x value