return duration for line lp in seconds