Please read every words carefully
http://www.dca.ca.gov/publications/landlordbook/sec-deposit.shtml
When repairs cannot be done within 21 days, the landlord can deduct based on a good faith estimate. Your "impression" of law is wrong. Please read this article and highlight, bring it to the court.