If the obligee is negligent regarding the failure to perform the obligation or the occurrence or spreading of a damage caused by that failure, the court determines the liability for damages and the amount of this by taking these elements into consideration.
債務の不履行又はこれによる損害の発生若しくは拡大に関して債権者に過失があったときは、裁判所は、これを考慮して、損害賠償の責任及びその額を定める。
Read this with the articles around it
damages
損害賠償
Compensation for loss one person has caused another. A debtor who does not perform an obligation as it should be performed, or cannot perform it, must compensate the creditor for the loss that results, unless the failure comes from a cause the debtor is not responsible for, judged by the contract or other source of the obligation and by accepted views in dealings (Civil Code, Article 415, paragraph (1)); and a person who, intentionally or negligently, infringes another's rights or legally protected interests must compensate for the loss that results (Article 709). It is paid in money unless otherwise agreed (Articles 417 and 722, paragraph (1)), and the parties to a contract may agree in advance the amount due if it is not performed; a sum fixed for breach (違約金) is presumed to be such an agreement (Article 420, paragraphs (1) and (3)). The Consumer Contract Act makes void the part of such an amount in a consumer contract, for its cancellation, with any penalty added, above the average loss the business would suffer from the cancellation of consumer contracts of that kind, measured separately for each category the clause sets, such as the reason for and time of cancellation (Consumer Contract Act, Article 9, paragraph (1), item (i)).
Written for this site using Civil Code, Arts. 415, 417, 420, 709, 722 and Consumer Contract Act, Art. 9 as a reference.