The beginning balance of a credit card account is $500. The monthly interest rate is 0.012. If a payment of $100 is made on the last day of the month, what is the ending balance?