Tu Quoque Fallacy (Appeal to hypocrisy) is a type of Ad Hominem fallacy in which a person tries to discredit the opponent by claiming that the opponent doesn't act according to the argument's conclusion.
Stan: Well, Mary, you were working on your project for two years and it was clear after one year that it wasn't working out. And now you are trying to convince me to quit so early.
Mary: I agree that I made a mistake and quit much later than I could have. But it doesn't mean that you have to follow my example.