User:Ashik786/Brazilian mileage provision

BRAZILIAN MILEAGE PROVISIONis related with airline industry. It should have the following conditions: 1. THE JOURNEY MUST BE WITHIN AREA 1 2. ANY ONE POINT (THE ORIGIN OR DESTINATION) SHOULD BE SAO PAULO OR RIO DE JANERIO 3. SAO OR RIO SHOULD NOT COME TOGETHER IN ONE JOURNEY  4. THE JOUNRNEY SHOUL ONLY CONTAIN CITIES FROM N. AMERICA AND S. AMERICA 5. RIO OR SAO SHOULD NOT COME AS INTERMEDIATE POINT

DEFINITION
If the journey starts from or ends in Rio or Sao and there is an excess mileage surcharge then we should replace Sao instead of Rio (and also Rio instead of Sao) and then if the excess mileage surcharge decreases then replace Sao instead of Rio(and vice- versa). It is used only to calculate the mileage. And if the borrowed mileage is not given divide the maximum miles