PL(i) = 22.7*log10(distance(i)) + 27 + 20*log10(fc/1e9); the unit of distance is km, so PL(i) = 22.7*log10(distance(i)/1000) + 27 + 20*log10(fc/1e9);