A commitment fee is charged by a lender to a borrower to compensate the lender for keeping a credit line open.