How many rak‘ahs are there in Tarawih prayer?
The most complete form of Tarawih prayer consists of twenty rak‘ahs, excluding Shaf‘ and Witr. This is the opinion of the majority of scholars, both past and present, and it is the practiced tradition in the two Holy Mosques.
However, Tarawih is valid with any even number of rak‘ahs, even two rak‘ahs, as long as it is performed with the intention of Qiyam al-Ramadan.
What is the ruling on reciting the takbīr from Sūrat aḍ-Ḍuḥā to Sūrat an-Nās upon completing the recitation of the Qur'an (khatm)?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
It is recommended to recite the takbīr from the beginning of Sūrat aḍ-Ḍuḥā through to the end of Sūrat an-Nās, and this is the recitation practice of the people of Makkah.
It is stated in Nihāyat az-Zayn (p. 65): "It is sunnah to begin each sūrah with the basmalah, since it constitutes a verse of it. It is also sunnah to say, before each sūrah — from aḍ-Ḍuḥā to the end of the Qur'an — 'Lā ilāha illallāh, wallāhu akbar' (There is no god but Allah, and Allah is the Greatest), based on what has been narrated regarding Imam ash-Shāfi‘ī (raḍiyallāhu ‘anh), who heard a man reciting this takbīr in prayer, and said to him: 'You have done well, and you have hit upon the sunnah.'"
And Allah, the Exalted, knows best.
What should someone do if they fasted for 30 days in their country, then traveled to a place where people are still fasting?
If a person completes 30 days of fasting in their country and then travels to another country where people are still fasting, they should continue fasting with them until they observe Eid. Even if they have already completed 30 days, he/she should abstain from eating and drinking and join the people of that country because he/she has now become part of that community.
What is the ruling on speaking while relieving oneself?
It is disliked for one relieving himself to speak while doing so, except out of necessity. And Allah the Almighty knows best.