As for the qadha of fasts, the least amount of fasts you are sure you have not fasted, only give qadha for them and in addition to that, you have to pay kaffara e takhir which is 750 grams of food to a poor person for each fast not kept and qadha not done before the month of Ramadan of the following year.
In regards to namaz, if you believed yourself to be Sunni then there is no qadha upto the time you believed yourself to be a Shi'a since you prayed following the Sunni method but if you thought of yourself as Shi'a, then you have to do qadha of those namaz prayed wrong