## Related to *Retained Certificate Available Funds*

**Retained Certificate Gain-on-Sale Remittance Amount** For each Distribution Date, the lesser of (i) the amount on deposit in the Retained Certificate Gain-on-Sale Reserve Account on such Distribution Date, and (ii) the Required Credit Risk Retention Percentage of the Aggregate Gain-on-Sale Entitlement Amount.

**Retained Certificate Realized Loss** With respect to any Distribution Date, the amount, if any, by which (i) the product of (A) the Required Credit Risk Retention Percentage and (B) the aggregate Stated Principal Balance (for purposes of this definition only, not giving effect to any reductions of the Stated Principal Balance for payments of principal collected on the Mortgage Loans that were used to reimburse any Workout-Delayed Reimbursement Amounts pursuant to Section 3.05(a)(v) to the extent such Workout-Delayed Reimbursement Amounts are not otherwise determined to be Nonrecoverable Advances) of the Mortgage Loans and any REO Loans (excluding any portion allocable to any related Companion Loan, if applicable) expected to be outstanding immediately following such Distribution Date, is less than (ii) the Certificate Balance of the RR Interest after giving effect to distributions of principal on such Distribution Date.

**Retained Certificate Realized Loss Distribution Amount** With respect to the RR Interest for any Distribution Date, an amount equal to the product of (A) the Risk Retention Allocation Percentage and (B) the aggregate amount of reimbursed Realized Losses and interest thereon distributed to the Holders of the Regular Certificates (other than the RR Interest) pursuant to Sections 4.01(a)(iii), (vi), (ix), (xii), (xv), (xviii), (xxi) and (xxiv) on such Distribution Date.

**Retained Certificate Principal Distribution Amount** With respect to the RR Interest for any Distribution Date, an amount equal to the product of (A) the Risk Retention Allocation Percentage and (B) the aggregate amount of principal distributed to the Holders of the Regular Certificates (other than the RR Interest) pursuant to Sections 4.01(a)(ii), (v), (viii), (xi), (xiv), (xvii), (xx) and (xxiii) on such Distribution Date.

**Retained Certificate Interest Distribution Amount** With respect to the RR Interest for any Distribution Date, an amount equal to the product of (A) the Risk Retention Allocation Percentage and (B) the aggregate amount of interest distributed to the Holders of the Regular Certificates (other than the RR Interest) pursuant to Sections 4.01(a)(i), (iv), (vii), (x), (xiii), (xvi), (xix) and (xxii) on such Distribution Date.

**Available Funds** With respect to any Distribution Date, an amount equal to the sum of (without duplication):

**Retained Certificate Gain-on-Sale Reserve Account** A custodial account or accounts (or subaccount of the Distribution Account) created and maintained by the Certificate Administrator, pursuant to Section 3.04(d) on behalf of the Trustee for the benefit of the Holders of the RR Interest, which shall initially be entitled “Wells Fargo Bank, National Association, as Certificate Administrator, on behalf of Wilmington Trust, National Association, as Trustee, for the benefit of the registered holders of BANK 2017-BNK7, Commercial Mortgage Pass-Through Certificates, Series 2017-BNK7, Retained Certificate Gain-on-Sale Reserve Account”. Any such account shall be an Eligible Account or a subaccount of an Eligible Account.

**Aggregate Available Funds** With respect to any Distribution Date, an amount equal to the sum of (without duplication):