How to calculate future date from today's date by using conditions?