A new study confirms that middle age is really unpleasant, but there’s an exact moment where the misery peaks.