Birth control

How long does the DEPO shot stay in your body for? How can i know when its time to go get the shot again?