Adjusted daily_update method for months with different days