Timeline for leaving postdoc
You should always be applying.  Postdocs are short term positions.  It is understood.
Give notice after you get AND have accepted a firm written job offer.


You really don't owe any more than that.