[v6r11] Correcty interpreting list of downtimes

With the special case of considering DTs starting in the next hours.

Also added a unit test