Hello my friend!
Check if the model I made below wouldn’t meet your need? I put some explanations in the model.
William Robert Alves