Paid too much to lease?

Hello everyone, I just found this wonderful site and wish I had found it sooner. Last year, I leased a Toyota Corolla (valued at $24,000) - I made the mistake of putting down a $2,500 down payment and eventually got a deal at $399 a month (credit score mid-600s). At the end of the lease, I will have paid nearly $17,000 - would I have paid over the odds? I was originally thinking of buying the car at the end of the lease but an estimated depreciation value of around $17,000 would mean I paid $34,000 for this car. Any advice is greatly appreciated?