I want input-event date to equal last date for this dataset or to equal of start job date if start date less last date of input-event. How can i do this? I need this to be abl