The Duration feature allows you to choose the duration of the final video.
Choose form 15 seconds, 30 seconds or 60 seconds.
The actual duration of the video is a few frames shorter to prevent Facebook and Instagram complaining about the video being too long.