Man, your script is a simple, elegant and a definitive solution.
I'm just learning CAL and dealing with all the limitations of it.
But in fact, I tested your script with various combinations and it works perfectly.
Thank you very much for your cooperation.
I will change my post about UNOVERLAP.CAL to indicate that the correct solution is your script.