$$
f(t; t_1, t_2, dt, k, \beta) =
\begin{cases}
0 & \text{if } t \le t_1 \\
\dfrac{k/2}{t_2 - t_1}\,(t - t_1) & \text{if } t_1 < t \le t_2 \\
\dfrac{k}{1 + \exp\left(-2\,\dfrac{t - t_2}{t_2 - t_1}\right)} & \text{if } t_2 < t \le t_3 \\
\dfrac{k}{1 + \exp\left(-2\,\dfrac{t_3 - t_2}{t_2 - t_1}\right)} + \beta\,(t - t_3)
& \text{if } t > t_3
\end{cases}
$$
where \(t_3 = t_2 + dt\).
The function is continuous at t1, t2, and t3. It is
differentiable at t2 by construction (the linear slope matches the
logistic derivative at t2). It is not differentiable at t1, and
it is generally not differentiable at t3 unless beta matches
the logistic derivative at t3.