You can apply for residence card once both of you are married. But your wife must be execerising her EU treaty rights. E.g. working, studying, self employed. if she meet this requirements then you can apply for residence card. As for permanent residence, I think it is after 5 years of consistence li...