when to give notice?

i'm currently working at a small cpa firm and recently accepted an offer to go work for a big 4 this fall. I've been working here full time for about four months. When should i give notice that i'm leaving?