Target duration can be set from the dialog box which is opened when clicking on "Set Target Duration" (from top menu edit drop down)

The set property is then displayed in the toolbar along with time gap (margin) computed from total duration.

Margin will be highlighted in red color if the total duration exceeds set target duration.

Clicking on the time values simply toggle between different time (total duration, target duration) values available.