Differentiability with respect to delays