Code for visualization of the overlap of the dates