Need help with formula/idea

Perhaps this can help you: Advanced Scheduler App for Homey | Homey and here is the forum thread for the app.