change next date logic