add derivative_dates function