Banks and companies don’t just issue bonds. They also borrow money through floating‑rate loans that can be repaid early. Pricing these loans is tricky because of credit risk and the borrower’s right to prepay at any time. Standard bond models break down. In this chapter, we’ll build a realistic framework that handles credit migration and that early‑repayment choice. You’ll see exactly how lenders set fair spreads and manage their risk.