updated first/last day calculations based on section