; (ii) use the proportions determined in accordance with clause (i) and the interest rate applicable for each component loan, as determined under subparagraph (B), to calculate the weighted average of the interest rates on the loans consolidated into the loan under section 428C or the Federal Direct Consolidation Loan; and (iii) apply the weighted average calculated under clause (ii) as the interest rate for the refinanced Federal Direct Consolidation Loan. (B) Interest rates for component loans The interest rates for the component loans of a loan made under section 428C or a Federal Direct Consolidation Loan shall be the following: (i) Federal Direct Stafford loans (I) Undergraduate FDSL The interest rate for any component loan that is a loan under section 428 or a Federal Direct Stafford Loan made to an undergraduate student shall be a rate equal to the lesser of— (aa) the rate of interest for a refinanced Federal Direct Stafford loan determined under paragraph (1)(A)(i) if such loan were made on the date on which the refinanced Federal Direct Consolidation Loan is made under this section; or (bb) the original interest rate of the component loan. (II) Graduate or professional FDSL The interest rate for any component loan that is a loan under section 428 or a Federal Direct Stafford Loan made to a graduate or professional student shall be a rate equal to the lesser of— (aa) the rate of interest for a refinanced Federal Direct Stafford loan determined under paragraph (1)(A)(ii) if such loan were made on the date on which the refinanced Federal Direct Consolidation Loan is made under this section