; or (B) if Federal Crop Insurance is not available, coverage under the Noninsured Crop Disaster Assistance Program. (d) Amount of payments (1) In general Subject to subsection (e), the amount of a payment provided to a producer under subsection (c)(1) shall be determined in accordance with— (A) to the maximum extent practicable, a calculation based on data relating to the producer for the applicable crop year that were previously submitted or known to the Secretary, including— (i) any indemnity of the producer under Federal Crop Insurance or payment received by the producer under the Noninsured Crop Disaster Assistance Program; (ii) the level of coverage of the producer under— (I) Federal Crop Insurance; or (II) the Noninsured Crop Disaster Assistance Program; and (iii) an appropriate percentage factor, to be established by the Secretary, subject to the condition that the factor shall be not more than 90 percent; or (B) for a producer that did not purchase coverage under Federal Crop Insurance or the Noninsured Crop Disaster Assistance Program, a calculation based on the revenue of the producer for the applicable crop year, as described in paragraph (2). (2) Revenue-based calculation (A) Definitions In this paragraph: (i) Allowable gross revenue The term allowable gross revenue , with respect to a producer, means the reported revenue of the operations of the producer during a crop year, including from— (I) sales of eligible crops, as identified by the Secretary; or (II) sales resulting from value added in post-production activities. (ii) Benchmark year The term benchmark year means a crop year in which a producer did not experience a qualified loss. (iii) Disaster year The term disaster year means a crop year in which a producer experiences a qualified loss. (B) Factors for consideration Subject to subparagraph (C), the revenue-based calculation referred to in paragraph (1)(B) shall take into account— (i) the allowable gross revenue of the applicable producer during a benchmark year