The cash account has a debit balance of $400. Through the month the account is debited for a total amount of $1500 and credited for a total amount of $900. What is the ending balance?