what is the rule regarding khums on the loan amount given to some needy brother in faith?

when they the returned the money after Khumas Date , then first khums will be paid after that this money will be used .