CA lemon laws include several open and shut provisions- 4 visits same problem not corrected, 2 visits serious safety problem not corrected, 30 days in the shop for any combination of problems. Your refund (or pro-rated discount on another similar car) is based on how many miles were on the car when the trouble began and includes sales tax.
Hire a good lemon law attorney- it costs you nothing and the job will get done. I've processed several claims with
Michael Saunders and he has succeeded 100% of the time. Talk to him.