Cone of shame

Me

My dog just got fixed today and he’s been trying to lick his incision site so I got him an e collar. It’s one of the plastic ones so he can eat and drink with it on. How king should I leave it on him? Like a week or until he heals?