logic for future date