A company purchased $4,600 worth of merchandise. Transportation costs were an additional $405. The company returned $315 worth of merchandise and then paid the invoice within the 1% cash discount period. The total cost of this merchandise is: