in the case of services described in section 1395k(a)(2)(D) of this title —
(A)#
except as provided in subparagraph (B), the costs which are reasonable and related to the cost of furnishing such services or which are based on such other tests of reasonableness as the Secretary may prescribe in regulations, including those authorized under section 1395x(v)(1)(A) of this title , less the amount a provider may charge as described in clause (ii) of section 1395cc(a)(2)(A) of this title , but in no case may the payment for such services (other than for items and services described in section 1395x(s)(10)(A) of this title ) exceed 80 percent of such costs; or
(B)#
with respect to the services described in clause (ii) of section 1395k(a)(2)(D) of this title that are furnished to an individual enrolled with a MA plan under part C pursuant to a written agreement described in section 1395w–23(a)(4) of this title , the amount (if any) by which—
(i) the amount of payment that would have otherwise been provided (I) under subparagraph (A) (calculated as if “100 percent” were substituted for “80 percent” in such subparagraph) for such services if the individual had not been so enrolled, or (II) in the case of such services furnished on or after the implementation date of the prospective payment system under section 1395m( o ) of this title, under such section (calculated as if “100 percent” were substituted for “80 percent” in such section) for such services if the individual had not been so enrolled; exceeds
(ii) the amount of the payments received under such written agreement for such services (not including any financial incentives provided for in such agreement such as risk pool payments, bonuses, or withholds),
(B)(i)#
the amount of payment that would have otherwise been provided (I) under subparagraph (A) (calculated as if “100 percent” were substituted for “80 percent” in such subparagraph) for such services if the individual had not been so enrolled, or (II) in the case of such services furnished on or after the implementation date of the prospective payment system under section 1395m( o ) of this title, under such section (calculated as if “100 percent” were substituted for “80 percent” in such section) for such services if the individual had not been so enrolled; exceeds