save end_date on model save depending on the experiment state