The firm had beginning retained earnings of $28,670. During the year, the company reported sales of $93,490, costs of $78,407, depreciation of $9,200, dividends of $750, and interest paid of $478. The tax rate is 40 percent. What would be the retained earnings balance at the end of the year?