Hello, yours sounds to be a bit complex
I do the following to sync every 20 minutes, (you can add locations or time and have one for Wifi and another for Data so that it uses one of the modes )
So it has a pair of events, 1 switches on Wifi or data every 20 minutes and the other one switches it...