intersected-period-days

Calculate unique days between a array of periods, ignoring intersections, through Stack method.