You have to make qaza of all the prayers and fasting you are sure you missed, so if you are confident that you missed 30000 prayers, then you have to make qaza of this number. However, if the number fluctuates between two like 25000 and 30000, you can choose the lower number, or something in between. The same thing applies to fasting.