How to catch missing days, duplicates, and overlapping statement periods