If you adhere to the treatment as advice by the concerned doctor, you would ideally be off meds after 6 to 9 months.
Following which, you may or may not experience similar complaints again. Even if you do, the intensity would be less because you would've been trained to cope with naturally troublesome life events.
Health Tips
One mustn't stop the medication suddenly. There's a protocol that exists where we gradually taper the dose and see how your body is responding to it. Most of the times, things will be better for once and for all.