added code for date beyond today