Mmm I would have just said, have the scalar equal to 0 everywhere and set the inlet to 1. Ans look at the outlet this will give you the accumulated transfer function F(t) and then you can derivate it to get the residence time function E(t), t being time not the saclar T 😅