The buyer on notifying the seller of his intention to do so may deduct all or any part of the damages resulting from any breach of the contract from any part of the price still due under the same contract.
Md. Code Ann., Com. Law § 2-717
Known as the Maryland Uniform Commercial Code
The act spans §§ 1–9 (556 sections).
Official source: Maryland General Assembly. Reproduced from public-domain Maryland statutes; confirm against the official source for the current text. Not legal advice.