Profit comes from an asset you own. Never from money.
Gold for gold, silver for silver, wheat for wheat, barley for barley, dates for dates, salt for salt: like for like, equal for equal, hand to hand. But when the kinds differ, trade as you wish, so long as it is hand to hand.
‘Ubada ibn al-Samit · Sahih Muslim 1587
Money follows the ruling of gold and silver, since those were the money the hadith names.
وَأَحَلَّ اللَّهُ الْبَيْعَ وَحَرَّمَ الرِّبَا
“But God has permitted trade and forbidden riba.”
Qur’an · al-Baqarah 2:275
وَإِن تُبْتُمْ فَلَكُمْ رُءُوسُ أَمْوَالِكُمْ لَا تَظْلِمُونَ وَلَا تُظْلَمُونَ
“And if you repent, you may keep your principal — wronging no one, and being wronged by no one.”
Qur’an · al-Baqarah 2:279
A study aid, not a fatwa. It cannot judge the fine print of a real contract. For your own situation, ask a qualified scholar.