Jim starts with a $2000 balance on his credit card. During the first month he charges $300, and during the second month he charges $500. The credit card has finance charges of 23% APR. The first month Jim makes a $200 payment and the second month Jim makes a $400 payment. What is the balance at the end of the second month?