reformattng code
correcting case of a min payment completing a loan