What does it cost to replace the EGR valve on a 1996 Toyota Camry?

I just replaced the EGR on my 1997 Toyota Camry 4cl and it was about $300, the downside is that I purchased a part with only a 6mo warranty and at 7 mo it went out again...