You can define a simulation time period to specify how long the simulation will run after you started it.
Procedure
To define a fixed simulation duration, enable the Relative option. Enter the duration. The format is dddd:hh:mm:ss, where d=day, h=hour, m=minute and s=second.
If the simulation is to run until all processes are completed, enable the Exit simulation when all processes are complete option.
Depending on whether you want to save the settings temporarily or permanently click Apply (single session) or Set as default, if you are using the Status and settings bar.
Your entries for the simulation time period have been accepted and will take effect in the next simulation run. In some cases, the simulation has to be reset and restarted, for example, if you have changed the start time.