بسم الله الرحمن الرحيم
In the above mentioned case, if your stay is fixed in a particular city or village for fifteen days or more then you will become muqim, but if your stay is not fixed in a city or village for fifteen days for example, you intend to stay some days in some city or some days in some village or in two different cities or in various villages then in such a case you will be musafir. In order to become muqim it is mandatory that you intend to stay in one area whether it is a city or village for fifteen days.
Allah knows Best!
Darul Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.