Distribution of residence time