A Model of Credit Limits and Bankruptcy