How to limit number of sets at a specific time