corrected last day of this month generation