I tried both your solution as well as Devarasu's but I am getting wrong results.

I don't know if it could depend from the first condition that should establish the time range for Data UAT pianificata.

I'll give you the scenario, so maybe there could be different solutions then mine:

I have an excel file with all the Numbers identifying a change then the dates when the UAT has been planned and executed. I have to calculate if the UAT is in delay or not for a specific month, in this case is June.

So to calculate the delay I need:

- Data avvio UAT pianificata must be between the Start and End of the Month (June) and Data avvio UAT effettiva must be greater than Data Avvio UAT pianificata, but also Data avvio UAT effettiva must be greater than Data Avvio UAT pianificata even if this one it has been planned in another month than June.