The basic fact is this: you’ve chosen to leave and you’re going to leave. Giving an excessive amount of notice is professional cruel and unusual punishment both for you and for your team because it extends the organization’s stress regarding your departure while also preventing your team from doing something critical: moving on.