Is this statement correct " why don't you finish your homework " or is it " why didn't you finish your homework " . Please answer with explanations

Q&A Platform for Education
Platform Explore for Education