A transaction takes around 6 months to complete and the buyer will want to structure a transaction that meets your objectives. If that means work with you for several years great, if that means leave quickly then that is fine also. Whatever works for you and the buyer.