Issue #3: comparing end dates with end of previous month