The Striton family had a meal catered for a wedding rehearsal dinner. The cost of the dinner was $476. There was a 5% sales tax and they left a 15% tip. What was the total cost including the sales tax and the tip?