pt2_duration function

Calculate the duration of the module