
32 Cal.Rptr.3d 296 (2005)
131 Cal.App.4th 703
250 L.L.C., Plaintiff and Appellant,
v.
PHOTOPOINT CORP. (USA), Defendant;
Sherwood Partners, Inc., Intervenor and Appellant.
Sherwood Partners, Inc., Plaintiff and Appellant,
v.
250 L.L.C., Defendant and Appellant.
No. A105231.
Court of Appeal, First District, Division Four.
July 28, 2005.
*298 Janet Brayer, Law Offices of Janet Brayer, San Francisco, for Plaintiff and Appellant and for Defendant and Appellant 250 L.L.C.
Sulmeyer Kupetz, Dean G. Rallis Jr., Diane C. Stanfield, Los Angeles, for Intervenor and Appellant and Plaintiff and Appellant Sherwood Partners, Inc.
*297 KAY, P.J.
Sherwood Partners, Inc., as assignee for the benefit of creditors of PhotoPoint Corp. (USA), and 250 L.L.C. (250) appeal from the judgment in these consolidated actions arising from a dispute concerning a substantial security deposit under a commercial lease between 250 as lessor and PhotoPoint as lessee. The central issues in the appeals are whether the court below correctly ruled that 250 failed to return the security deposit as required by Civil Code section 1950.7,[1] but that 250 was entitled to offset the amount of the security deposit it withheld against the even greater amount of damages it sustained on account of PhotoPoint's breach of the lease, and therefore PhotoPoint sustained no actual damages and was not entitled to return of the deposit.
We conclude that 250 violated section 1950.7 by retaining the security deposit to cover its damages for future rent owed under the lease, because section 1950.7 allows a security deposit to be applied only against unpaid rent that has accrued as of the date called for in the statute for the return of the deposit. We hold that parties to a commercial lease can waive *299 section 1950.7 to provide that a security deposit may be held and applied against future rent damages, but that no such waiver was made in the lease in this case. We hold further that the amount of the security deposit 250 wrongly retained cannot be offset against its future rent damages because that result would enable 250 to profit from its violation of section 1950.7. The judgment must therefore be reversed.

I. BACKGROUND
The lease in question was for a five-year term beginning on April 10, 2000. The lease defined "Security Deposit" to mean cash in the amount of $49,544.17, a sum equal to one month's base rent, as provided in section 6.A of the lease, and the letter of credit required under section 6.B. Section 6.B stipulated that, in addition to the cash security deposit, PhotoPoint would arrange for issuance by a bank of an irrevocable letter of credit in favor of 250 as beneficiary in the amount of $890,175.00, a sum equal to 18 months' base rent. PhotoPoint was obligated to cause the issuing bank to immediately restore any amount drawn on the letter of credit. Provided PhotoPoint was not in default under the lease, the letter of credit was to be reduced by $178,035one-fifth the original amountat the end of each year in the lease term. Pursuant to this provision, the letter of credit was reduced on March 30, 2001 to the sum of $712,140.
PhotoPoint failed to pay rent due under the lease for the months of April, May, June, and July 2001. As a result, 250 caused the bank to draw down the letter of credit by 98,908.34 on May 23, 2001, and $49,454.17 on June 12, 2001. PhotoPoint did not cause the bank to restore these amounts to the letter of credit. On June 26, 2001, PhotoPoint executed a general assignment for the benefit of creditors to Sherwood as assignee, an event of default under the lease. On July 16, 2001, 250 caused the bank to pay 250 the $563,777.49 remaining on the letter of credit. On or about August 14, 2001, 250 served on PhotoPoint a "Notice of Belief of Abandonment," and a "Notice to Quit" containing an election to forfeit the lease.
On August 29, 2001, 250 filed an unlawful detainer action against PhotoPoint (Superior Court No. 324137). In November 2001, Sherwood as PhotoPoint's assignee sued 250 (Superior Court No. 401396) seeking return of the security deposit, including the letter of credit funds, retained by 250.250 amended the complaint in case 324137 to replace the unlawful detainer count with a cause of action for damages for breach of the lease, and Sherwood intervened in that case.
The cases were consolidated for trial and tried to the court on stipulated facts. It was stipulated that 250 had not returned any funds referred to in section 6 of the lease. It was further stipulated that 250 was damaged as a result of PhotoPoint's breach of the lease in the amount of $1,557,898.78, which included the base rent of $49,454.17 per month from July 2001 through June 2002, and $49,454.17 less $20,854.17 per month from July 2002 through April 9, 2005.
The court excluded parol evidence at trial, and ruled that 250 was "entitled to pursue its rights of setoff." The court found that PhotoPoint was entitled to a credit for the security deposit and letter of credit funds 250 retained ($49,454.17 + $563,777.49) against the damages 250 sustained. The court found that 250 was required to return the security deposit and letter of credit funds to PhotoPoint "within the time frame provided by Civil Code section 1950.7," but that PhotoPoint sustained no actual damages as a result of the statutory violation because those funds *300 could be applied against 250's damages. The court awarded PhotoPoint a statutory penalty of $100 for 250's violation of section 1950.7. The court entered a net judgment of $944,567.12 in favor of 250, representing 250's damages of $1,557,898.78, less the security deposit and letter of credit funds of $613,231.66 and the $100 statutory penalty.

II. DISCUSSION

A. Section 1950.7
Security deposits in commercial leases are governed by section 1950.7. As of the date of the judgment herein, section 1950.7, subdivision (c) provided that a security deposit could be applied "to remedy tenant defaults in the payment of rent, to repair damages to the premises caused by the tenant, or to clean the premises upon termination of the tenancy." (Italics added.) If the deposit was used to cover only defaults in the payment of rent, then the balance was to be returned to the tenant within two weeks after the landlord receives possession of the premises. (Ibid.)[2] No issue is presented in this case regarding amounts to clean, or repair damages to, the premises. The dispute is about the meaning of "rent" in the statute.
Sherwood argues that "defaults in the payment of rent" means the unpaid rent that has accrued when the security deposit is required to be returned. 250 takes the position that "rent" includes not only past-due rent, but also future rent damages the landlord could recover under section 1951.2, i.e., the rent owed for the remainder of the lease term, less the rental loss the tenant proves could have been reasonably avoided.[3] "[A] California lessor *301 with abandoned premises has two mutually exclusive remedies: deem the lease terminated and seek damages pursuant to § 1951.2, or, under § 1951.4, continue to perform under the lease and seek rent as it becomes due." (In re Lomax (Bankr.9th Cir.1996) 194 B.R. 862, 866.)[4] "Through the termination of the lease upon abandonment, § 1951.2 converts a landlord's continuing right to rent under the lease into a damage claim for rent lost through the tenant's abandonment." (Id. at p. 865.)
In 250's view, the deadline for return of a security deposit under section 1950.7 only limits the time within which a landlord exercising its rights under section 1951.2 must estimate its damages for future lost rent. Under this scenario, if the deposit would be insufficient to cover the anticipated section 1951.2 damages, the landlord could retain it; on the other hand, if it appeared that the deposit would exceed the damages, the excess would have to be refunded. Here, for example, 250 indicates the rental market was falling when it received possession of the premises, and 250 asserts it was clear at that point that the damages for future lost rent would exceed the amount of the security deposit. Under section 1950.7, subdivision (f), a landlord who retains a security deposit in violation of the statute and does so in bad faith is liable for up to $200 in damages in addition to any actual damages the tenant sustains. Thus, under 250's argument, if the landlord guessed wrong, and retained more of the security deposit than was required to cover future rent damages, the excess would eventually be refunded as actual damages to the tenant; if the landlord acted in bad faith, the tenant could be awarded additional damages of $200.
No authority supports 250's reading of section 1950.7, and its interpretation is contrary to the statute's language and purpose. Whereas section 1950.7 affords a "summary deduct-and-retain procedure" (Granberry v. Islay Investments (1995) 9 Cal.4th 738, 745, 38 Cal.Rptr.2d 650, 889 P.2d 970 [describing section 1950.5, the security deposit statute for residential leases]) that is to be completed shortly after the landlord's recovery of possession, section 1951.2 contemplates a court action in which damages are adjudicated (see California Safety Center, Inc. v. Jax Car Sales (1985) 164 Cal.App.3d 992, 998-999, 211 Cal.Rptr. 39). Any estimate of section 1951.2 damages within the limited timeframe of section 1950.7 would necessarily be speculative. "If the rent to be offset *302 against the security deposit must be calculated and the excess returned within two weeks after the premises are surrendered to the landlord, the offset clearly is limited to rent due through the time of surrender." (Italics added; St. James, Landlord Beware: Will a Security Deposit Survive a Bankruptcy? (2001) 26 Cal. Bankr.J. 44, 47.) Moreover, if 250's construction of section 1950.7 were adopted, landlords could retain security deposits well beyond the statutory deadline in every case, on the ground that the deposit "might" not cover prospective damages, and could do so with relative impunity given the modest penalty for acting in bad faith. Such a result would thwart the statutory purpose of compelling the prompt refund of security deposits. (See Granberry v. Islay Investments, supra, at p. 746, 38 Cal.Rptr.2d 650, 889 P.2d 970.)
Sherwood's construction of section 1950.7 is supported by the decision in Public Employees' Retirement System v. Winston (1989) 209 Cal.App.3d 205, 258 Cal. Rptr. 612. The tenant in Winston vacated the premises on May 5, 1984, and was found to have been constructively evicted on that date. The landlord retained the $5,115 security deposit and sued the tenant for over $100,000 in unpaid future rent and other damages under the lease. The trial court found that the landlord was entitled to damages of $5,281.57, plus interest. The issue in the appeal was whether the security deposit could be offset against the judgment, in which case the landlord would have obtained a net recovery and been the prevailing party, or whether the security deposit had to be offset against the rent owed as of May 19, 1984, two weeks following the constructive eviction, pursuant to section 1950.7, subdivision (c), in which case the landlord would have owed the tenant money as of that date and the tenant would have been the prevailing party.
The Winston court held that the "statutory language unambiguously provides that the lessor must credit the deposit against any rent owing within two weeks following the termination of the lease, at which time the lessee becomes entitled to the balance, if any. Section 1950.7, subdivision (c) makes no reference to the application of the deposit towards the amount of any judgment against the lessee." (Public Employees' Retirement System v. Winston, supra, 209 Cal.App.3d at p. 209, 258 Cal.Rptr. 612.) This conclusion is directly at odds with 250's reading of the statute. Under 250's interpretation, the landlord in Winston would have been able to keep the security deposit because it was far less ($5,115) than the unpaid future rent and other damages (over $100,000) the landlord thought was due under the lease, and the result would have been a credit of $5,115 (less a penalty of up to $200 if the landlord retained that amount in bad faith) against the judgment, rather than a credit against the rent that was owed two weeks after the landlord recovered possession of the premises.
Sherwood's interpretation of section 1950.7 is also supported by the timing of the statute's enactment and the evolution of the statute's language. Since section 1950.7 went into effect before section 1951.2, the term "rent" as used in section 1950.7 cannot plausibly be taken to refer to future rent damages under section 1951.2. Section 1950.7 was originally enacted as section 1951, which became effective January 1, 1971. (See Stats. 1970, Ch. 1317, § 1, p. 2453; Stats. 1972, Ch. 618, § 4, pp. 1095-1096; Stats. 1977, Ch. 971, §§ 1, 3, pp. 2939, 2941-2942.) Section 1951.2, however, did not go into effect until July 1, 1971. (Stats. 1970, Ch. 89. §§ 2, 14, pp. 104-105, 107.) Before section 1951.2 became effective, a landlord had no right to terminate a lease for a tenant's breach, *303 and then sue for lost rent; if the lease were terminated due to the tenant's breach, the landlord's right to the remaining rent terminated as well. (Recommendation Relating to Real Property Leases (Nov.1969) 9 Cal. Law Revision Com. Rep. 153, 157-159 (hereafter Recommendation).) It thus appears that the word "rent" as used in section 1950.7 means unpaid rent that has accrued under the lease, and does not include section 1951.2 damages for the loss of rent payable after the lease is terminated. (See In re Lomax, supra, 194 B.R. at p. 865 [distinguishing between the "real property right" to rent and the "contract right" to damages for lost rent arising from termination of the lease].)
The purpose of recent amendments to section 1950.7, subdivision (c) provides further support for Sherwood's position. Section 1950.7, subdivision (c) now allows the landlord to retain a security deposit of up to one month's rent for up to 30 days to remedy defaults in the payment of rent.[5] According to a committee report on this change, the retention time was increased from two weeks to 30 days because landlords needed more time to calculate common area maintenance (CAM) charges assessed as additional rent in commercial leases. (Sen. Com. on Judiciary, com. on Assem. Bill No. 1361 (2003-2004 Reg. Sess.) as introduced, pp. 1-3.) The report explained that "[u]nder the current 14-day requirement . . . commercial landlords often cannot determine the CAM charges in that time and must therefore return all of the tenant's security deposit even though the CAM charges are still owing. This in turn forces the landlord to try to collect the CAM charges from a departed tenant. If the former tenant does not voluntarily pay, the landlord's only recourse is to sue in court to enforce the debt." (Id. at p. 3 (italics added).) The italicized language indicates that it is not permissible for a landlord to keep a security deposit beyond the statutory time limit, even if an additional amount is certain to be determined to be due to the landlord thereafter, much less that it would be permissible, as 250 claims, to apply the deposit to an unliquidated amount that may subsequently become due.
250 argues that to exclude section 1951.2 damages from "rent" under section 1950.7 *304 would effectively negate section 1951.7, which provides that, after a lease is terminated pursuant to section 1951.2 and if certain conditions are met, including an "advance payment" by the tenant of over one month's rent under the original lease, the tenant is to receive written notice from the landlord of the reletting of the premises and the term and rent under the new lease. An "advance payment" for purposes of section 1951.7 is defined, like a security deposit under section 1950.7, to include money paid to the landlord to secure performance under the lease. (§§ 1950.7, subd. (a), 1951.7, subd. (a).) 250 argues that there would be "no point" to section 1951.7 unless the landlord is allowed to retain the former tenant's security deposit as security for future rent damages under section 1951.2. However, a former tenant exposed to such damages will have an interest in the landlord's efforts to mitigate them by reletting the premises, whether or not the landlord retains the security deposit. "Section 1951.7 does not in any way affect the right of the lessor to recover damages nor the right of a lessee to recover prepaid rent, a security deposit, or other payment. The section is included merely to provide a means whereby the lessee whose lease has been terminated under Section 1951.2 may obtain information concerning the length of the term of the new lease and the rent provided in the new lease." (Recommendation, supra, 9 Cal. Law Revision Com. Rep. at p. 171.)
250 submits that section 1950.7 should not be interpreted so as to "strip [the landlord] of its rights" under sections 1951.2 and 1951.4. 250 notes that, upon termination of a lease under section 1951.2, the landlord is "immediately vested" with the "right to recover" its damages under that section, including past and future unpaid rent. However, the existence of that right does not depend on a rule that would allow retention of a security deposit for application against possible future rent damages. As for section 1951.4, we agree with 250 that "it is appropriate to retain the deposit so as to utilize the remedy provided under [that statute]," and our reading of section 1950.7 does not prevent that recourse. Under section 1951.4, when the tenant breaches the lease and abandons the premises, the landlord may, if certain conditions are met, elect not to terminate the tenant's right to possession and instead continue to enforce its rights under the lease, including the right to collect the rent as it becomes due. Because the tenant in that event retains the right to sublet the premises or assign its interest in the lease (§ 1951.4, subd. (b)), the landlord does not "receive[] possession of the premises" within the meaning of section 1950.7, the duty to return the security deposit does not arise, and the landlord can continue to apply the deposit against the rent as it accrues.
250 cites cases predating the enactment of sections 1950.7 and 1951.2 for the proposition that a landlord may retain a security deposit until the damages from the tenant's breach of the lease are ascertained. (See, e.g., Thompson v. Swiryn (1950) 95 Cal.App.2d 619, 626, 213 P.2d 740 [tenant is not entitled, upon breach of a lease, to return of a deposit made to secure performance of the lease; "the lessor may look to the fund for damages proved and the lessee may recover the balance"]; Gallagher v. McMann (1932) 119 Cal.App. 688, 690, 7 P.2d 204 [the landlord is "entitled to retain the deposit until the complete discharge of the obligation which the same is intended to secure"].) Cases decided before advent of the right to recover future rent damages under section 1951.2 can provide no definitive rule governing security for the use of that remedy and, in any event, those decisions have been abrogated *305 insofar as they conflict with section 1950.7. Section 1950.7 specifies the obligations against which a security deposit can be applied, and directs that the balance of the deposit remaining after those deductions be refunded promptly to the tenant. As the court observed in People ex rel. Smith v. Parkmerced Co. (1988) 198 Cal.App.3d 683, 244 Cal.Rptr. 22, disapproved on another point in Kraus v. Trinity Management Services, Inc. (2000) 23 Cal.4th 116, 136-137, 96 Cal.Rptr.2d 485, 999 P.2d 718, with respect to the statute governing security deposits for residential leases, section 1950.5 "restricts the use [of a security deposit] to specifically defined purposes," (Smith, supra, at p. 690, 244 Cal.Rptr. 22), and requires that the deposit be returned to the extent it is not necessary for those limited purposes. Since those observations apply equally to section 1950.7, 250's reliance on pre-section 1950.7 cases for a contrary rule is misplaced.
The more recent cases cited by 250 Kraus v. Trinity Management Services, Inc., supra, 23 Cal.4th 116, 96 Cal.Rptr.2d 485, 999 P.2d 718, and California Safety Center, Inc. v. Jax Car Sales, supra, 164 Cal.App.3d 992, 211 Cal.Rptr. 39are also inapposite. Kraus clarified the meaning of the term "security" as used in section 1950.5, subdivision (b) (Kraus v. Trinity Management Services, Inc., supra, at pp. 139-141, 96 Cal.Rptr.2d 485, 999 P.2d 718); California Safety Center clarified the damages recoverable for unpaid rent during the time periods specified in section 1951.2, subdivisions (a)(1), (a)(2), and (a)(3) (California Safety Center, Inc. v. Jax Car Sales, supra, at p. 999, 211 Cal.Rptr. 39.) Neither case concerns section 1950.7 or contains any reasoning that supports 250's position.
Accordingly we conclude that the words "defaults in the payment of rent" in section 1950.7 refer only to unpaid rent that has accrued as of the time the security deposit is required to be returned, and do not refer to future rent damages the landlord may thereafter recover under section 1951.2.

B. The Lease
250 bases a series of arguments against the finding that it violated section 1950.7 on the terms of its lease with PhotoPoint. These contentions, like those advanced by 250 as to the meaning of the statute, are unpersuasive.

(1) The Letter of Credit
250 contends that the portion of the security deposit represented by the letter of credit was not a "payment or deposit of money" within the meaning of section 1950.7, subdivision (a), and was thus excepted from the statute. 250 notes that section 1950.7, subdivision (a), has no language like that of section 1951.7, subdivision (a), which defines an "advance payment" under a lease as "moneys" deposited with the landlord to secure performance of the lease, or other payment that is the "substantial equivalent" of such a deposit. 250 thus submits that the letter of credit could not be deemed a security deposit on the theory that it was substantially equivalent to money. 250 also relies on the "independence principle" applicable to letters of creditthe rule that the issuer's obligation to honor a draw on the letter of credit is entirely separate from any underlying contract between the issuer's customer and the letter of credit beneficiary (Western Security Bank v. Superior Court (1997) 15 Cal.4th 232, 237, 62 Cal.Rptr.2d 243, 933 P.2d 507)and on cases holding that a letter of credit and its proceeds are not property of the bankruptcy estate of the issuer's customer (In Matter of Marine Distributors, Inc. (9th Cir.1975) 522 F.2d 791, 795; *306 In re Farm Fresh Supermarkets of Maryland, Inc. (Bankr.D.Md.2001) 257 B.R. 770, 772).
We are not called upon to decide whether a letter of credit constitutes a "payment or deposit of money" for purposes of section 1950.7 because 250 had drawn the entire amount of the letter of credit before the security deposit was due to be returned, and 250 was thus holding only "money" at the relevant point. Nor does the "independence" of letters of credit have any bearing on PhotoPoint's right to the return of that money under the lease and the law governing the lease. This conclusion is supported by the decision in In re Graham Square, Inc. (6th Cir.1997) 126 F.3d 823.
The debtor in Graham Square sought financing from a bank, and arranged for a letter of credit in the bank's favor to cover the loan commitment fee. The bank approved the loan, but the debtor was unable to consummate the loan agreement. The bank drew on the letter of credit to pay the commitment fee, and the debtor filed for bankruptcy. The bankruptcy trustee sued the bank to recover the proceeds of the letter of credit on the theory that the commitment fee was an impermissible penalty under applicable state contract law. The bankruptcy and district courts held that the trustee had no right to recover the fee because the fee had been paid through a letter of credit and recovery was barred by the independence principle. The circuit court disagreed:
"Critically, and of great importance here, the doctrine of independence protects only the distribution of the proceeds of the letter of credit. It prohibits an attack on the issuing bank's distribution to the beneficiary and does not address claims respecting the underlying contract. In these cases the trustee has not challenged the distribution of the proceeds by [the issuer], but instead, has challenged [the bank's] right to retain the commitment fee and has brought an action on the underlying contract between the debtor and [the bank].
"While the fee was paid through the vehicle of a standby letter of credit, and may thus be considered `proceeds' of the letter of credit, it is significant that [the bank] has already received those funds. It is one thing to attempt to prevent the distribution of the proceeds of a letter of credit, an attempt the doctrine of independence is designed to prevent; but it is quite another to bring an action on the underlying contract that created the letter of credit.
"If the debtor had paid [the bank] the commitment fee in cash, the debtor could seek a refund by challenging the fee provision in the underlying contract as an illegal penalty. All of [the bank's] arguments aside, there is no principled reason for allowing a challenge to the underlying contract when the fee is paid in cash, and not allowing such a challenge after the fee is paid via a standby letter of credit. In other words, challenging the distribution of the proceeds of a letter of credit is different than challenging the underlying contract. The ultimate result may be the same (refund of the fee), but in one case the method of recovery is permissible and in the other it is barred." (In re Graham Square, Inc., supra, 126 F.3d at pp. 827-828.)
This reasoning is persuasive and applies equally here. In this case, as in Graham Square, it is significant that the proceeds of the letter of credit have been distributed. Sherwood is seeking to enforce PhotoPoint's state law rights under the latter's contract with 250; Sherwood is not challenging 250's right to draw on the letter of credit. Thus, the independence principle is inapplicable, and it is irrelevant that the *307 security deposit originated as a letter of credit.

(2) Waiver
250 contends that the requirements of section 1950.7 were waived under various provisions of the lease. Sherwood maintained in its briefs that a tenant could not waive the benefits of section 1950.7, but abandoned that claim at oral argument in the appeal. Sherwood is right to concede that a tenant under a commercial lease may effectively agree to waive the protections of section 1950.7. That conclusion is consistent with cases holding that commercial tenants may waive their rights under the Civil Code (e.g., Lee v. Placer Title Co. (1994) 28 Cal.App.4th 503, 512-513, 33 Cal.Rptr.2d 572 [right to quiet enjoyment]; Folberg v. Clara G. R. Kinney Co. (1980) 104 Cal.App.3d 136, 140, 163 Cal.Rptr. 426 [right to notice of rent default]), and with California's public policy of "enable[ing] and facilitate[ing] freedom of contract by the parties to commercial real property leases." (§ 1995.270, subd. (a)(1).) Since the Legislature has expressly prohibited waivers of section 1950.5's protections for residential security deposits (§ 1953, subd. (a)(1)), its failure to do so with respect to commercial security deposits indicates that waivers are permissible as to those deposits. (See Hersh v. State Bar (1972) 7 Cal.3d 241, 246, 101 Cal.Rptr. 833, 496 P.2d 1201 [disparities in statutes dealing with the same subject matter are presumed to be intentional]; Williams v. County of San Joaquin (1990) 225 Cal.App.3d 1326, 1332-1333, 275 Cal.Rptr. 302; see also § 3268).
The lease in this case did not provide generally that its terms were to govern to the extent that they conflicted with applicable statutes. The lease stipulated that PhotoPoint was waiving its rights under certain specified statutes, but section 1950.7 was not among the statutes mentioned. 250 admits that the lease contains no "explicit" waiver of section 1950.7, but argues that such a waiver can be implied from its terms.
250 contends that, given the sheer size of the security deposit, it must have been intended to serve as security for the payment of rent that would be owed after PhotoPoint defaulted. While we would agree with that assertion, the problem for 250 is that a waiver of section 1950.7 was not the only means by which the whole of the security deposit could have been applied against future rent under the lease. The lease gave 250 the option to proceed under section 1951.4, keep the lease in effect, and continue to collect the rent as it became due. As previously explained, the security deposit could have been retained *308 in that situation because 250 would not have received possession of the premises. Thus, if 250 had followed section 1951.4, it could have applied the security deposit against the monthly rent as it became due until the deposit was exhausted. Instead, it elected under section 1951.2 to terminate the lease and PhotoPoint's right of possession thereunder, and thereby triggered the duty to return the security deposit as provided in section 1950.7. Since the lease provided a way to apply the security deposit against future rent without a waiver of section 1950.7, no such waiver need be implied to effectuate the large security deposit.
250 searches the security deposit and remedies sections of the lease for an implicit waiver of section 1950.7. As previously indicated, the lease defines "Security Deposit" to mean the cash deposit and the letter of credit. The security deposit section reads in full as follows:
"6. Security Deposit
"A. The Security Deposit shall be in the amount of $49,544.17. The Security Deposit shall be delivered to Landlord upon the execution of this Lease by Tenant and shall be held by Landlord without liability for interest (unless required by Law) as security for the performance of Tenant's obligations. The Security Deposit is not an advance payment of Rent or a measure of Tenant's liability for damages. Landlord may, from time to time, without prejudice to any other remedy, use all or a portion of the Security Deposit to satisfy past due Rent or to cure any uncured default by Tenant, subject to the expiration of any applicable notice and cure period provided in the Lease. If Landlord uses the Security Deposit, Tenant shall on demand restore the Security Deposit to its original amount. Landlord shall return any unapplied portion of the Security Deposit to Tenant within 45 days after the later to occur of: (1) the date Tenant surrenders possession of the Premises to Landlord in accordance with this Lease; or (2) the Termination Date.[6] If Landlord transfers its interest in the Premises, Landlord may assign the Security Deposit to the transferee and, following the assignment, Landlord shall have no further liability for the return of the Security Deposit. Landlord shall not be required to keep the Security Deposit separate from its other accounts.
"B. In addition to, and not in lieu of, the cash Security Deposit provided for in Section 6.A, Tenant shall deliver to Landlord a sight draft letter of credit in the original principal amount of $890,175, permitting partial draws issued by a bank permitting draws in San Francisco, California and which shall be substantially in the form of Exhibit E attached hereto. The letter of credit shall provide that it shall be renewed annually with a final expiration date 60 days beyond the scheduled Termination Date unless the issuing bank provides written notice to Landlord that it is not being renewed, in which case Landlord shall have the right to draw down the letter of credit and hold, apply and return such proceeds in accordance with Section 6.A. In the event any amounts are drawn on the letter of credit, Tenant shall immediately cause the issuing bank to restore such amount. The letter of credit shall provide that on each anniversary date of the Commencement Date it shall be reduced by $178,035, provided if Landlord gives the issuing bank notice that Tenant is then in default under this Lease beyond any applicable notice and cure period, then such reduction shall be delayed until such time as Landlord *309 gives the issuing bank notice that such default is cured." (Italics added.)
We discern nothing in the relevant language of these sections, which we have italicized, that could reasonably be interpreted to constitute an implicit waiver of section 1950.7 so as to authorize retention of any portion of the security deposit for application against future rent damages under section 1951.2. To the contrary, the only provision that specifies how the security deposit may be applied, which states that it may be used to satisfy "past due" rent, and uncured defaults after notice and the opportunity to cure, is consistent with our interpretation of section 1950.7. Both the lease and the statute refer to liquidated amounts owed under the lease, not damages subject to proof for future rent. Since there is no evidence that PhotoPoint was given notice and an opportunity to cure any defaults, the lease by its terms allowed the security deposit to be applied only against past due rent. Thus, under the lease and section 1950.7, 250 was required to return the security deposit within the time specified after receipt of possession of the premises, less only the rent past due at that point.
250 contends that section 6.A's limitation on the use of the security deposit to cover past due rent does not apply to the portion of the security deposit represented by the letter of credit, because section 6.B provides that the proceeds of the letter of credit are to be applied in accordance with section 6.A only in the situation where the letter of credit is drawn after the issuing bank advises that the letter of credit will not be renewed. However, nothing in the lease suggests that the letter of credit proceeds can be applied in any manner other than the one specified in section 6.A. Section 6.A states that the "Security Deposit" can be used to satisfy past due rent, and section 1.H defines "Security Deposit" to include the letter of credit furnished under section 6.B. The lease thus clearly and unambiguously limits the application of the letter of credit funds to past due rent. As we read the sentence in section 6.B on which 250 relies, it simply confirms that the letter of credit proceeds are to be held, applied and returned as provided in section 6.A when the letter of credit is drawn because it will not be renewed, as well as when it is drawn because of a PhotoPoint default. The sentence thus reinforces our interpretation of the permissible use of the security deposit under the lease.
250 contends that the lease implicitly waives section 1950.7 because section 6.A states that the deposit is to be returned within 45 days after the later of the surrender of the premises or the date the lease is terminated in accordance with the lease, and section 6.B states that the letter of credit is to have a final termination date 60 days beyond the scheduled termination date of April 9, 2005. The termination date specified in a letter of credit that is to be renewed annually during the term of the lease would need to be a date on or after the end of the scheduled lease term. Thus, that the letter of credit would not by its terms expire before the end of the scheduled term of the lease says nothing about when proceeds of the letter of credit were due to be returned to PhotoPoint. The 45-day return period specified in section 6.A did not effectively waive the whole of section 1950.7 as 250 urges, it merely specified a longer period for retention of the security deposit (45 days after surrender or termination in accordance with the lease), than the period specified in the statute (two weeks after 250's receipt of possession of the premises). However, this provision of section 6.A only waived section 1950.7 to that limited extent; it did not allow 250 to retain the security deposit beyond 45 days for application against future rent damages under section 1951.2.
*310 250's attempt to find an implicit waiver of section 1950.7 in the remedies section of the lease is also unavailing. The full text of this section is set out in the margin.[7]*311 The provisions of section 20.A.1 merely restate 250's rights under section 1951.2; they do not expand 250's rights under that statute or section 1950.7. Under section 20.A.1 and section 1951.2, 250 was, as it says, "immediately vested" with the right to recover all damages under the lease, including damages for future rent determined in accordance with the statute. But as we have indicated, the security deposit statute cannot be read to permit retention of the deposit pending the trial of those damages. We note that in the middle of section 20.C., which provides for waivers of rights under section 3275 (relief from forfeiture by full compensation), and Code of Civil Procedure sections 1174, subdivision (c) (five days to reinstate after unlawful detainer judgment) and 1179 (relief from forfeiture because of hardship), there is language stating that PhotoPoint waives any and all rights conferred by "any and all other laws and rules of law from time to time in effect." However, this language cannot in context be taken to refer to a waiver of all applicable law, including section 1950.7, and 250 advances no argument based on section 20.C.
The remedies provisions further support our view of the permissible uses of the security deposit under the lease. Section 20.A provides for the exercise of 250's rights under section 1951.4 to continue the lease in effect after PhotoPoint's breach and abandonment, and to recover the rent as it thereafter became duethat procedure, as we have said, would have enabled 250, over time, to apply all of the security deposit to unpaid rent, and obviated the need for a waiver of section 1950.7 for that purpose. Section 20.C, which the parties set out in capital letters, undermines 250's claim that PhotoPoint implicitly waived its section 1950.7 rights. That provision shows that when the parties intended to provide for waivers of statutory rights they knew how to do so very explicitly.[8]
250 notes finally that, under section 31.I of the lease, PhotoPoint's obligation to pay rent survived the early termination of the lease. This section provides: "The expiration of the Term, whether by lapse of time or otherwise, shall not relieve either party of any obligations which accrued prior to or which may continue to accrue after the expiration or early termination of this Lease. Without limiting the scope of the prior sentence, it is agreed that Tenant's obligations under Sections 4 [rent], 8 [leasehold improvements], 14 [indemnity and waiver of claims], 20 [remedies], 25 [holding over], and 30 [surrender of premises] shall survive the expiration or early termination of this Lease."
The fact that, pursuant to this section, monthly rent would continue to accrue[9]*312 after early termination of the lease is of no assistance to 250. This section does not give 250 any greater rights than those bestowed by section 1951.2. "It is true of course that a lessor's election to forfeit the lessee's rights under a lease because of the lessee's default, or even a judgment in unlawful detainer declaring a forfeiture of the lessee's rights, does not relieve the lessee of the obligations imposed by the lease. That is the precise effect of section 1951.2 . . . [Section 1951.2] abrogates the common law rule that the lessee's obligation to pay rent depends on the continued existence of the term." (Desert Plaza Partnership v. Waddell (1986) 180 Cal.App.3d 805, 812-813, 225 Cal.Rptr. 775, italics omitted.) Moreover, as we have said, 250 could have applied the security deposit against the rent as it accrued if 250 had used the remedy provided in section 1951.4.
Accordingly, there was no waiver of section 1950.7 in the lease apart from a brief extension of the statutory time within which the security deposit had to be returned.

(3) Parol Evidence
250 contends that the court erred in granting Sherwood's motion to preclude 250 from introducing parol evidence to show an understanding between 250 and PhotoPoint that, if the latter breached the lease, the security deposit could be applied against future as well as past due rent. 250 sought to submit testimony from the real estate agent who acted for 250 and PhotoPoint in the lease negotiations that "`it was the general intent and it was the general climate in the market that existed, that letters of credit were being issued to protect landlords from tenants going out of business and making sure that you were going to get 18 months of rent, or a year's rent, or whatever a certain landlord was comfortable with.'" 250 wanted to introduce testimony from PhotoPoint's chief financial officer, who understood that the letter of credit "was there to protect the landlord," and that 250 would look to the security deposit to address damages flowing from a default. 250 also wanted to present testimony from one of its managers that Sherwood contacted him in 2001 and indicated that it was seeking a replacement tenant in order to negotiate a return of part of the letter of credit funds.
Section 31.K of the lease, under the heading "Miscellaneous," stated that: "All understandings and agreements previously made between the parties are superseded by this Lease, and neither party is relying upon any warranty, statement or representation not contained in this Lease. This Lease may be modified only by a written agreement signed by Landlord and Tenant." Section 32 of the lease, under the heading "Entire Agreement," provided that: "This Lease and the following exhibits and attachments constitute the entire agreement between the parties and supersede all prior agreements and understandings related to the Premises. . . ." Where, as here, "the parties to a written contract have agreed to it as an `integration'a complete and final embodiment of the terms of an agreementparol evidence cannot be used to add to or vary its terms." (Masterson v. Sine (1968) 68 Cal.2d 222, 225, 65 Cal.Rptr. 545, 436 P.2d 561; see Code Civ. Proc., § 1856, subds. (a) and (b).)
250 argues that it was offering parol evidence merely to interpret the agreement, not to vary or add to its terms. "The test of admissibility of extrinsic evidence to explain the meaning of a written instrument is . . . whether the offered evidence is relevant to prove a meaning to which the language of the instrument is *313 reasonably susceptible." (Pacific Gas & E. Co. v. G.W. Thomas Drayage etc. Co. (1968) 69 Cal.2d 33, 37, 69 Cal.Rptr. 561, 442 P.2d 641.) The evidence in question was being offered to show that 250 and PhotoPoint intended for the security deposit to be available for application against future rent under the lease if PhotoPoint defaulted. However, the evidence was unnecessary for that purpose because, as we have acknowledged, that intention was reasonably apparent from the size of the security deposit alone. The question is not whether the parties intended to permit the security deposit to be used for future rent, it is whether they intended to waive section 1950.7 in order to facilitate that use. This is so, again, because the parties had, by making available in the lease the use of the section 1951.4 remedy (lessor may continue lease in effect), given 250 a means of applying the deposit against the future rent as it accrued, without any waiver of section 1950.7.
Whether the language of an agreement is reasonably susceptible to a proposed interpretation is a question of law. (Winet v. Price (1992) 4 Cal.App.4th 1159, 1165, 6 Cal.Rptr.2d 554.) As a matter of law, the language of the lease in this case cannot reasonably be interpreted as waiving section 1950.7. The lease states in relevant part that the security deposit may be used, in accordance with section 1950.7, to satisfy "past due" rent. Those words are clear and cannot be taken to refer to future rent. Accordingly, the court correctly granted the motion to exclude the parol evidence.

C. Setoff
The trial court determined that although 250 had not returned the security deposit as required under section 1950.7, 250 could nonetheless offset the deposit against the damages it sustained as a result of PhotoPoint's breach of the lease. In its statement of decision and judgment, the court concluded that 250 was "entitled to pursue its rights of setoff" pursuant to Code of Civil Procedure section 431.70 and Granberry v. Islay Investments, supra, 9 Cal.4th 738, 38 Cal.Rptr.2d 650, 889 P.2d 970. Code of Civil Procedure section 431.70 "does not create a substantive right to raise setoff as a defense to a claim for monetary relief, but merely describes the procedures to be followed in raising this defense." (Granberry, supra, at p. 744, 38 Cal.Rptr.2d 650, 889 P.2d 970.) The arguments on the setoff issue are centered on the Granberry case.
The controversy in Granberry arose under section 1950.5, the security deposit statute for residential leases. The issue was "whether a landlord who in good faith fails to comply with the requirements of this statute may nevertheless recover damages for unpaid rent, repairs, and cleaning in a subsequent judicial proceeding." (Granberry v. Islay Investments, supra, 9 Cal.4th at p. 741, 38 Cal.Rptr.2d 650, 889 P.2d 970.) The landlords in Granberry owned or operated over 1,000 residential units, charged tenants an extra $100 for the first 31 days of occupancy, and never returned any part of that amount to the tenants. Approximately 10,000 tenants paid about $1 million in $100 first-month premiums, and a class of former tenants sued for return of those premiums on the ground that they were security deposits within the meaning of section 1950.5. Under section 1950.5 the landlord was required, within three weeks of the date the tenant vacated the premises, to provide the tenant with a written accounting for any portion of the security deposit the landlord retained; if the landlord failed to provide the accounting within this period the entire deposit had to be returned. The landlords in Granberry did not furnish the accountings, and it was determined that they had, in good faith, failed to return the first-month premiums as required by section 1950.5. The question presented in the case was whether the landlords *314 could nevertheless offset the premiums against damages for unpaid rent, repairs, and cleaningliabilities against which security deposits could be applied under section 1950.5, subdivision (b). (See Granberry v. Islay Investments, supra, 9 Cal.4th at p. 742, fn. 3, 38 Cal.Rptr.2d 650, 889 P.2d 970.)
The court held that a landlord who has in good faith failed to return a security deposit as required by section 1950.5 can nonetheless recover damages for unpaid rent, repairs, and cleaning in a subsequent judicial proceeding. (Granberry v. Islay Investments, supra, 9 Cal.4th at pp. 749-750, 38 Cal.Rptr.2d 650, 889 P.2d 970.) The court reasoned that "the mere fact that the landlord has lost the right to take advantage of the summary deduct-and-retain procedure of section 1950.5, subdivision (f), does not lead to the conclusion that he has lost all right to claim damages for unpaid rent, repair, and cleaning, whether through setoff or otherwise." (Granberry, supra, at p. 745, 38 Cal.Rptr.2d 650, 889 P.2d 970.) The tenants argued that "to allow the landlords to raise setoff as a defense would be inconsistent with the equitable principle that an individual should not profit from his own wrong, because landlords may use this defense to keep all or part of the security deposits they retained in violation of section 1950.5, subdivision (f)." (Id. at p. 747, 38 Cal.Rptr.2d 650, 889 P.2d 970.) While the court "recognize[d] the importance of this equitable principle (see § 3517), and while [it did] not doubt that this principle may bar setoff on the particular facts of many individual cases, it does not justify an absolute bar to the right to a setoff in all cases." (Ibid.) The court observed in this regard that "a landlord that seeks setoff after good faith noncompliance with the procedures described in section 1950.5, subdivision (f), does not `profit from his own wrong,' because he cannot set off any damages he could not have recovered if he had complied with section 1950.5, subdivision (f)." (Id. at p. 748, 38 Cal.Rptr.2d 650, 889 P.2d 970.)
We read this last statement, as does Sherwood, to mean that a landlord that in good faith violates the security deposit statute may offset against its damages only those amounts which it properly could have claimed of the security deposit in the first place. Here, 250 wrongly retained the security deposit to cover future rent damages  damages against which the deposit could not have been applied under section 1950.7  and thereby profited from its own wrong unlike the landlords in Granberry. To allow the offset against future rent damages accomplished by the net judgment in this case would enable 250 to profit from its violation of section 1950.7 at the expense of the other creditors of PhotoPoint. If Sherwood were allowed a separate judgment, it would be in a position to marshal an asset of PhotoPoint for the benefit of all of PhotoPoint's creditors, not just 250. A setoff "simply eliminates a superfluous exchange of money between the parties." (Jess v. Herrmann (1979) 26 Cal.3d 131, 137, 161 Cal.Rptr. 87, 604 P.2d 208.) There would be no such "exchange" in this instance because 250, like other PhotoPoint creditors, is entitled only to a pro rata distribution of PhotoPoint's assets, not a dollar for dollar recovery of its damages. Entry of the net judgment thus resulted in an "inequitable windfall" to 250 (id. at p. 143, 161 Cal.Rptr. 87, 604 P.2d 208), and separate judgments are required.

D. Time for Return of the Deposit
In view of the court's ruling on the setoff issue, it was not required to determine precisely when 250 was required to return the security deposit. No evidence on the issue was presented other than the Notice to Quit and the Notice of Belief of *315 Abandonment 250 served on PhotoPoint on or about August 14, 2001. The Notice to Quit stated that if PhotoPoint did not vacate and deliver possession of the premises, 250 would initiate legal proceedings to declare a forfeiture of the lease, and to recover possession of the premises, rent, and damages. The Notice to Quit further stated: "[250] elects to declare the forfeiture of the Lease under which you hold possession of the premises." The Notice of Belief of Abandonment, given pursuant to section 1951.3,[10] advised that the premises would be deemed abandoned under section 1951.2 and the lease would terminate on September 3, 2001, unless, before that date, 250 received written notice from PhotoPoint stating that PhotoPoint did not intend to abandon the property.
250 reports in its briefs that, after PhotoPoint vacated the premises sometime in July 2001, Sherwood moved in to review documents and marshal PhotoPoint's assets. 250 indicates that Sherwood eventually vacated the property but never turned over the keys or advised 250 of its intentions with respect to the lease. 250 says that this caused it to serve the Notice to Quit and Notice of Belief of Abandonment. The record shows that 250 filed its unlawful detainer action against PhotoPoint on August 29, 2001.
As we have said, section 6.A of the lease effectively amended the statutory time for return of the deposit. Section 1950.7, subdivision (c) required that the balance of the security deposit remaining after application toward default in the payment of rent be returned to the tenant within two weeks after the landlord received possession of the premises"receipt of possession" meaning, in our view, termination of the lease pursuant to section 1951.2, either by the tenant's breach and abandonment,[11] or by termination of the tenant's right of possession. Section 6.A of the lease provided a longer, 45-day deadline, measured from a different date: the later of (1) PhotoPoint's surrender of possession of the premises "in accordance with this Lease,"[12] and (2) the "Termination Date," *316 which is defined in section 1.E to mean April 9, 2005, or the date of early termination "in accordance with this Lease." The situation is further complicated by section 1954.1, which gives a tenant's assignee for the benefit of creditors the right to occupy the premises for up to 90 days after the assignment, if the assignee pays the monthly rent when due.[13]
The parties have not briefed the issue of when the security deposit was due to be returned under the lease, and that date is not a pure question of law on which we can appropriately rule in the first instance. The date needs to be determined by the trial court, after the parties are afforded an opportunity to submit further argument and evidence. However, the briefs do raise arguments on the lease's termination that can be dealt with here.
250 had the right, under the lease and section 1951.2, to terminate the lease by terminating PhotoPoint's right of possession. In the absence of proof that PhotoPoint responded to the Notice of Belief of Abandonment, the lease terminated on September 3, 2001, as stated in that notice. (§ 1951.3, subd. (a); In re Lomax, supra, 194 B.R. at p. 866.) That termination was unquestionably a termination "in accordance with this lease" within the meaning of section 6.A, which would have started the running of the 45 days.[14] In the absence of evidence that Sherwood timely paid the rent required to exercise its right of continued occupancy as PhotoPoint's assignee, there is no merit to 250's suggestion that the existence of that right prevented the lease from being terminated in accordance with its terms on September 3, 2001.
Sherwood contends that the premises must have been abandoned, and the lease therefore terminated, by August 14, 2001, the date of the Notice of Abandonment. (See § 1951.3, subd. (b) [such notice may be given only when the lessor reasonably believes that the tenant has abandoned].) However, the lease specifies that the 45 days begin to run from surrender or termination of the lease in accordance with its terms, not from the time of breach and abandonment. Sherwood argues that the lease was terminated on August 24, 2001, 10 days after service of the notice to quit. However, termination "in accordance with this lease" apparently refers to termination of PhotoPoint's right of possession, a right that was not extinguished through *317 the notice to quit. (See California Safety Center, Inc. v. Jax Car Sales, supra, 164 Cal.App.3d at p. 999, fn. 7, 211 Cal.Rptr. 39 [tenant can remain in possession until unlawful detainer judgment is rendered].) These points do not preclude Sherwood from attempting to establish, when the case is returned to the trial court, that the 45-day period for return of the security deposit under the lease began to run before September 3, 2001.

III. DISPOSITION
The judgment is reversed.
We concur: REARDON and RIVERA, JJ.
NOTES
[1]  Unless otherwise indicated, all further statutory references are to the Civil Code.
[2]  Section 1950.7 formerly provided in part: "(a) Any payment or deposit of money the primary function of which is to secure the performance of a rental agreement for other than residential property or any part of the agreement, other than a payment or deposit, including an advance payment of rent, made to secure the execution of a rental agreement, shall be governed by the provisions of this section. With respect to residential property, the provisions of Section 1950.5 shall prevail. [¶] (b) Any such payment or deposit of money shall be held by the landlord for the tenant who is party to the agreement. The claim of a tenant to the payment or deposit shall be prior to the claim of any creditor of the landlord, except a trustee in bankruptcy. [¶] (c) The landlord may claim of the payment or deposit only those amounts as are reasonably necessary to remedy tenant defaults in the payment of rent, to repair damages to the premises caused by the tenant, or to clean the premises upon termination of the tenancy, if the payment or deposit is made for any or all of those specific purposes. Where the claim of the landlord upon the payment or deposit is only for defaults in the payment of rent, then any remaining portion of the payment or deposit shall be returned to the tenant no later than two weeks after the date the landlord receives possession of the premises. Where the claim of the landlord upon the payment or deposit includes amounts reasonably necessary to repair damages to the premises caused by the tenant or to clean the premises, then any remaining portion of the payment or deposit shall be returned to the tenant at a time as may be mutually agreed upon by landlord and tenant, but in no event later than 30 days from the date the landlord receives possession of the premises. [¶] ... [¶] (f) The bad faith retention by a landlord or transferee of a payment or deposit or any portion thereof, in violation of this section, may subject the landlord or the transferee to damages not to exceed two hundred dollars ($200), in addition to any actual damages. [¶] (g) This section is declarative of existing law and therefore operative as to all tenancies, leases, or rental agreements for other than residential property created or renewed on or after January 1, 1971."
[3]  Section 1951.2 provides in part: "(a) Except as otherwise provided in Section 1951.4, if a lessee of real property breaches the lease and abandons the property before the end of the term or if his right to possession is terminated by the lessor because of a breach of the lease, the lease terminates. Upon such termination, the lessor may recover from the lessee: [¶] (1) The worth at the time of award of the unpaid rent which had been earned at time of termination; [¶] (2) The worth at the time of award of the amount by which the unpaid rent which would have been earned after termination until the time of award exceeds the amount of such rental loss that the lessee proves could have been reasonably avoided; [¶] (3) ... the worth at the time of award of the amount by which the unpaid rent for the balance of the term after the time of award exceeds the amount of such rental loss that the lessee proves could be reasonably avoided; and [¶] (4) Any other amount necessary to compensate the lessor for all the detriment proximately caused by the lessee's failure to perform his obligations under the lease or which in the ordinary course of things would be likely to result therefrom."
[4]  Section 1951.4 provides in part: "(a) The remedy described in this section is available only if the lease provides for this remedy. . . . [¶] (b) Even though a lessee of real property has breached the lease and abandoned the property, the lease continues in effect for so long as the lessor does not terminate the lessee's right to possession, and the lessor may enforce all the lessor's rights and remedies under the lease, including the right to recover the rent as it becomes due under the lease, if any of [the specified conditions concerning assignment and subletting by the tenant] is satisfied."
[5]  The statute now reads: "(c) The landlord may claim of the payment or deposit only those amounts as are reasonably necessary to remedy tenant defaults in the payment of rent, to repair damages to the premises caused by the tenant, or to clean the premises upon termination of the tenancy, if the payment or deposit is made for any or all of those specific purposes. [¶] (1) If the claim of the landlord upon the payment or deposit is only for defaults in the payment of rent and the security deposit equals no more than one month's rent plus a deposit amount clearly described as the payment of the last month's rent, then any remaining portion of the payment or deposit shall be returned to the tenant at a time as may be mutually agreed upon by landlord and tenant, but in no event later than 30 days from the date the landlord receives possession of the premises. [¶] (2) If the claim of the landlord upon the payment or deposit is only for defaults in the payment of rent and the security deposit exceeds the amount of one month's rent plus a deposit amount clearly described as the payment of the last month's rent, then any remaining portion of the payment or deposit in excess of an amount equal to one month's rent shall be returned to the tenant no later than two weeks after the date the landlord receives possession of the premises, with the remainder to be returned or accounted for within 30 days from the date the landlord receives possession of the premises. [¶] (3) If the claim of the landlord upon the payment or deposit includes amounts reasonably necessary to repair damages to the premises caused by the tenant or to clean the premises, then any remaining portion of the payment or deposit shall be returned to the tenant at a time as may be mutually agreed upon by landlord and tenant, but in no event later than 30 days from the date the landlord receives possession of the premises."
[6]  The lease defines the "Termination Date" as April 9, 2005, "unless terminated early in accordance with this Lease."
[7]  "20. Remedies.

"A. Upon the occurrence of any event or events of default under this Lease, whether enumerated in Section 14 [the reference should be to § 19, listing events of default] or not, Landlord shall have the option to pursue any one or more of the following remedies without any notice (except as expressly prescribed herein) or demand whatsoever (and without limiting the generality of the foregoing, Tenant hereby specifically waives notice and demand for payment of Rent or other obligations and waives any and all other notices or demand requirements imposed by applicable law):
"1. Terminate this Lease and Tenant's right to possession of the Premises and recover from Tenant an award of damages equal to the sum of the following: [¶] (a) The Worth at the Time of Award of the unpaid Rent which had been earned at the time of termination; [¶] (b) The Worth at the Time of Award of the amount by which the unpaid Rent which would have been earned after termination until the time of award exceeds the amount of such Rent loss that Tenant affirmatively proves could have been reasonably avoided; [¶] (c) The Worth at the Time of Award of the amount by which the unpaid Rent for the balance of the Lease Term after the time of award exceeds the amount of such Rent loss that Tenant affirmatively proves could be reasonably avoided; [¶] (d) Any other amount necessary to compensate Landlord for all the detriment either proximately caused by Tenant's failure to perform Tenant's obligations under this Lease or which in the ordinary course of things would be likely to result therefrom; and [¶] (e) All such other amounts in addition to or in lieu of the foregoing as may be permitted from time to time under applicable law. [¶] The `Worth at the Time of Award' of the amount referred to in parts (a) and (b) above, shall be computed by allowing interest at the lesser of a per annum rate equal to: (i) the greatest per annum rate of interest permitted from time to time under applicable law, or (ii) the Prime rate plus five percent (5%). For purposes hereof, the `Prime Rate' shall be the per annum interest rate publicly announced as its prime rate or base rate by a federally insured bank selected by Landlord in the State of California. The `Worth at the Time of Award' of the amount referred to in part (c), above, shall be computed by discounting such amount at the discount rate of the Federal Reserve Bank of San Francisco at the time of the award plus 1%.
"2. Employ the remedy described in California Civil Codes § 1952.4 (Landlord may continue this Lease in effect after Tenant's breach and abandonment and recover Rent as it becomes due, if Tenant has the right to sublet or assign, subject only to reasonable limitations); or
"3. Notwithstanding Landlord's exercise of the remedy described in California Civil Code § 1951.4 in respect of an event or events of default, at such time thereafter as Landlord may elect in writing, to terminate this Lease and Tenant's right to possession of the Premises and recover an award of damages as provided above in Section 20A.1.
"B. The subsequent acceptance of Rent hereunder by Landlord shall not be deemed to be a waiver of any preceding breach by Tenant of any term, covenant or condition of this Lease, other than the failure of Tenant to pay the particular Rent so accepted, regardless of Landlord's knowledge of such preceding breach at the time of acceptance of such Rent. No waiver by Landlord of any breach hereof shall be effective unless such waiver is in writing and signed by Landlord.
"C. TENANT HEREBY WAIVES ANY AND ALL RIGHTS CONFERRED BY SECTION 3275 OF THE CIVIL CODE OF CALIFORNIA AND BY SECTIONS 1174(C) AND 1179 OF THE CODE OF CIVIL PROCEDURE OF CALIFORNIA AND ANY AND ALL OTHER LAWS AND RULES OF LAW FROM TIME TO TIME IN EFFECT DURING THE LEASE TERM PROVIDING THAT TENANT SHALL HAVE ANY RIGHT TO REDEEM, REINSTATE OR RESTORE THIS LEASE FOLLOWING ITS TERMINATION BY REASON OF TENANT'S BREACH. TENANT ALSO HEREBY WAIVES, TO THE FULLEST EXTENT PERMITTED BY LAW, THE RIGHT TO TRIAL BY JURY IN ANY LITIGATION ARISING OUT OF OR RELATING TO THIS LEASE.
"D. No right or remedy herein conferred upon or reserved to Landlord is intended to be exclusive of any other right or remedy, and each and every right and remedy shall be cumulative and in addition to any other right or remedy given hereunder or now or hereafter existing by agreement, applicable law or in equity. In addition to other remedies provided in this Lease, Landlord shall be entitled, to the extent permitted by applicable law, to injunctive relief, or to a decree compelling performance of any of the covenants, agreements, conditions or provisions of this Lease, or to any other remedy allowed to Landlord at law or in equity. Forbearance by Landlord to enforce one or more of the remedies herein provided upon an event of default shall not be deemed or construed to constitute a waiver of such default.
"E. This Section 20 shall be enforceable to the maximum extent such enforcement is not prohibited by applicable law, and the unenforceability of any portion thereof shall not thereby render unenforceable any other portion."
[8]  See also section 17.A of the lease covering "Casualty Damage": ". . . Landlord and Tenant hereby waive the provisions of any Law relating to the matters addressed in this Article, and agree that their respective rights for damage to or destruction of the Premises shall be those specifically provided in this Lease."
[9]  The section on rent provided in pertinent part: "As consideration for this Lease, Tenant shall pay Landlord, without any setoff or deduction, the total amount of Base Rent and Additional Rent due for the Term. `Additional Rent' means all sums (exclusive of Base Rent) that Tenant is required to pay Landlord. Additional Rent and Base rent are sometimes collectively referred to as `Rent.' . . . Base Rent and recurring monthly charges of Additional Rent shall be due and payable in advance on the first day of each calendar month without notice or demand, provided that the installment of Base Rent for the first full calendar month of the Term shall be payable upon the execution of this Lease by Tenant. All other items of Rent shall be due and payable by Tenant on or before 30 days after billing by Landlord. . . . Tenant's covenant to pay Rent is independent of every other covenant in this Lease."
[10]  Section 1951.3 provides in part: "(a) Real property shall be deemed abandoned by the lessee, within the meaning of Section 1951.2, and the lease shall terminate if the lessor gives written notice of his belief of abandonment as provided in this section and the lessee fails to give the lessor written notice, prior to the date of termination specified in the lessor's notice, stating that he does not intend to abandon the real property and stating an address at which the lessee may be served by certified mail in any action for unlawful detainer of the real property. [¶] (b) The lessor may give a notice of belief of abandonment to the lessee pursuant to this section only where the rent on the property has been due and unpaid for at least 14 consecutive days and the lessor reasonably believes that the lessee has abandoned the property. The date of termination of the lease shall be specified in the lessor's notice and shall be not less than 15 days after the notice is served personally or, if mailed, not less than 18 days after the notice is deposited in the mail. [¶] . . . [¶] (f) Nothing in this section precludes the lessor or the lessee from otherwise proving that the real property has been abandoned by the lessee within the meaning of Section 1951.2. [¶] (g) Nothing in this section precludes the lessor from serving a notice requiring the lessee to pay rent or quit as provided in Sections 1161 and 1162 of the Code of Civil Procedure at any time permitted by those sections, or affects the time and manner of giving any other notice required or permitted by law. The giving of the notice provided by this section does not satisfy the requirements of Sections 1161 and 1162 of the Code of Civil Procedure."
[11]  As we have noted, the landlord can effectively decline receipt of possession in that situation if it exercises its rights under section 1951.4.
[12]  Section 30 of the lease, under the heading "Surrender of Premises," states that: "At the expiration or earlier termination of this Lease or Tenant's right of possession, Tenant shall remove Tenant's Property (defined in Section 15) from the Premises, and quit and surrender the Premises to Landlord, broom clean, and in good order, condition and repair, ordinary wear and tear excepted." The section goes on to specify 250's rights with respect to property that is not removed.
[13]  Section 1954.1 provides: "In any general assignment for the benefit of creditors, as defined in Section 493.010 of the Code of Civil Procedure, the assignee shall have the right to occupy, for a period of up to 90 days after the date of the assignment, any business premises held under a lease by the assignor upon payment when due of the monthly rental reserved in the lease for the period of such occupancy, notwithstanding any provision in the lease (whether heretofore or hereafter entered into) for the termination thereof upon the making of the assignment or the insolvency of the lessee or other condition relating to the financial condition of the lessee. This section shall be construed as establishing the reasonable rental value of the premises recoverable by a landlord upon a holding-over by the tenant upon the termination of a lease under the circumstances specified herein."
[14]  The lease, in specifying that the 45 days would begin to run on the later of surrender or termination, could be read literally to provide that the duty to return the security deposit would never arise if PhotoPoint never surrendered possession "in accordance with this lease." However, it would be unreasonable to expect a tenant who has abandoned the premises, and then had its lease terminated pursuant to a notice of belief of abandonment, to take any further action to "surrender" the premises.
