increasing method getSequenceDuration to get duration of sequence