how to make a repeat plan but for a given amount of time

Hello, I'm new on garmin connect, I'm using a forerunner 165 watch.

I would like to plan a running workout with some repetition but for a given amount of time instead of a number of times.

For example, I would like to add a 10 minutes warming, then 40 minutes of the follow: 1 km at 5:50 minutes/km followed by 1 minute recovery.

Is there a way to make that kind of plan?

Thanks