edits to decodeDetails

handles the case: if today is tuesday, 30/9, user add task from monday
to friday.