Until when is the depo shot effective?

I got my first round of depo shot on December 21. Im not planning on getting the second because I had bad experiences with it. Until when would it be effective?