I would like my transformation to take a date as a parameter and use that value for the start date if it's an insert and an end date if it's terminating one. How can I accomplish this?