When does the newborn stage end???

What can I have as a mental milestone that I won’t lose my shit?? Rather when do they stop eating at night??? This is what makes me mad.