Overlap of Two Date Windows

Home / Overlap of Two Date Windows

s1 is the start of Window 1
e1 is the end of Window 1
s2 is the start of Window 2
e2 is the end of Window 2
s1 < e1
s2 < e2
Window 1 Total Days = (e1 – s1) + 1
>Window 2 Total Days = (e2 – s2) + 1

Example Usage:

TimeWindows

TimeWindowsExampleOutput