How long do I cook chicken for?

I have boneless chicken thighs. One site says in oven 350 for 20-30 minutes and another site says in oven 400 for 50 minutes . ???