Move the playhead to where you want the behavior to end
Select the behavior
hit o
This sets the outpoint of the behavior (and any other object type) to where the playhead is.
You can also also use it via the Mark Out command found in the Mark menu.
You can also set the timing for any object in the Inspector via it’s Timing parameters in its Properties pane.