Can't get the movie or timeline to stop

hi,

could anyone tell me how to stop my timeline at the end of my movie?
my movie runs from frame #1 to frame #580 (that’s where the red indicator line stops) frames 346-580 are blank.
problem my movie ends on frame #345 … how can i make it stop at frame #345 instead of frame #580??

thank you!
john