extract duration to module