My friend and I were talking. My friend said, "I (have) had my car repaired. It's working now". I asked, "How long was your car out of order?" (or:" How long had your car been out of order") " My friend replied, " It was (or: "had been") out of order for two weeks".
Actually, I don't particularly like 'out of order', but I can't at the moment think of anything better.
Student or Learner