Even if the war ends now, it will take months for prices to come down