Loop should be end by giving time

How to stop continues loop by giving time

@Harsh3
You can incorporate with an if activity that a Break (For Each) is raised or loop condition (While) is changend
the If statement e.g. validates time information