It took me about 3 months (two different times a bit over a year apart). Each instance only lasted for about 4 months when I'd just lose motivation. Maybe it was because I made an accomplishment each time (being able to jog half an hour without stopping for the first time in my life was the last one), and that feeling of satisfaction meant I no longer had a drive to accomplish something anymore.
I still have my goal of being able to run indefinitely, but I'm just not motivated to start back up again.