Set Timer in an infinite loop

Hello, I have two set timers, one for going home and the other for roaming around. When the time is up for roaming, it should roam, and when that time is up, it should go home. How can I achieve this?

this should do it.