Peace be upon you. The legal distance for travel is approximately 44 kilometers (about 27 miles). This distance is calculated from the point where a person is considered a traveler, which is usually the edge of the town, and in some very large cities, it may be the end of a neighborhood. For someone traveling to a country that is not their homeland, the endpoint is their destination in that country, not the beginning of it. According to Ayatollah Sistani, the legal distance is 44 kilometers, while Ayatollah Khamenei states that it is 41 kilometers for a one-way trip or a round trip, provided that the one-way distance is not less than 20.5 kilometers. The calculation of the legal distance is based on the distance between the last point of departure and the first point of destination, regardless of whether the destination is in a large city or not. If the traveler's destination is a specific location on the outskirts of the city, such as a university or a hospital, the distance is calculated to that specific location rather than the beginning of the city. May you be successful in all good deeds.