Which sentence does not contain awkward sentence structure?

A.when a car needs many serious repairs, it might be cheaper to buy a new car.

B. When a car needs many repairs, it might be cheaper to buy an new one.

C. When a car had needed many serious repairs, it might be cheaper to buy a new one