Calculate any gdp per capita of any country and compare

input first gdp per capita and the rival gdp per capita with both growth rate . be careful the first gdp per capita must be lower than the gdp per capita of the rival but first growth rate must be higher than growth rate of the rival. the goal is to know when first gdp per capita will be able to catch up with gdp per capita of the rival or rivals .
for example 2013:morocco GDP PER CAPITA IS 3000 DOLLARS and growth rate(4.5%)every year and USA with GDP PER CAPITA OF 50000 DOLLARS and growth rate (2%)evey year.
MOROCCAN GDP PER CAPITA after about 117 years. MOROCCAN GDP PER CAPITA --> 517281.846 dollars / USA GDP PER CAPITA-->507212.678 dollars IN 2131 .

: : :

: : :

:

: