If that is the case, there may be a specific requirement. Otherwise, the customary two weeks should be OK. As an example, if you are planning to retire and expect any kind of retiree benefit, my company has a 30 days notice requirement, and also requires you to be in 'good standing' with the company.