I am a bit confused about my situation and am hoping someone can help

Initially, I was granted a 2 year leave to remain (issued in October 2005 and valid until October 2007). We had been living together for 2 years prior to this.
After this, I got the residence card for family member of an EEA national which is valid till Jan 2013, issued in Jan 08.
My question is, when will I be able to make an application for indefinite leave to remain or Permanent Residence as it is known under EU law? Is it in October 2010 (5 years from the time the first visa was issued under this route) or is it from the time the first application was made? Or maybe from when we started to live together, which makes the total period now 7 years?? A bit lost there....
Also, if it's time to apply, what form do I use? EEA4?
Sorry if these questions are obvious, just trying to clarify those points. I hope this makes sense

Many thanks!