; 1087a et seq.; 1087aa et seq.); or (II) in the case of a loan made under subpart II of part A of title VII of the Public Health Service Act or under part E of title VIII of the Public Health Service Act, a repayment plan under title VII or VIII of such Act. (ii) Federal Direct Consolidation Loan The term qualifying monthly payment , used with respect to a Federal Direct Consolidation Loan, means a monthly payment on such loan that counts as 1 of the 120 monthly payments described in section 455(m)(1)(A) of the Higher Education Act of 1965 ( 20 U.S.C. 1087e(m)(3)(B) ). (b) Special rules relating to Federal Direct Consolidation Loans and ICR and IBR (1) In general During the period described in subsection (e), with respect to a borrower who receives a Federal Direct Consolidation Loan and who intends to repay such loan under an income-contingent repayment plan under section 455(d)(1)(D) of the Higher Education Act of 1965 ( 20 U.S.C. 1087e(d)(1)(D) ) or an income-based repayment plan under section 493C of such Act ( 20 U.S.C. 1098e ), the Secretary shall— (A) review the borrower’s payment history to identify each component loan of such Federal Direct Consolidation Loan; (B) for each such component loan— (i) calculate the weighted factor of the component loan, which shall be the factor that represents the portion of such Federal Direct Consolidation Loan that is attributable to such component loan; and (ii) determine the number of qualifying monthly payments made on such component loan before consolidation; (C) calculate the number of qualifying monthly payments determined under subparagraph (B)(ii) with respect to a component loan that shall be deemed as qualifying monthly payments made on the Federal Direct Consolidation Loan by multiplying— (i) the weighted factor of such component loan as determined under subparagraph (B)(i), by (ii) the number of qualifying monthly payments made on such component loan as determined under subparagraph (B)(ii)