54Having regard to all the foregoing considerations, the answer to the fifth question is that Article 5(3) of Regulation No 261/2004, read in the light of recital 14 thereof, must be interpreted as meaning that, in the event of a delay to a flight equal to or in excess of three hours in arrival caused not only by extraordinary circumstances, which could not have been avoided by measures appropriate to the situation and which was subject to all reasonable measures by the air carrier to avoid the consequences thereof, but also in other circumstances not in that category, the delay caused by the first event must be deducted from the total length of the delay in arrival of the flight concerned in order to assess whether compensation for the delay in arrival of that flight must be paid as provided for in Article 7 of that regulation.