How to find range of uplink communication

Equation for calculating uplink range of communication,
I got one equation but I need to verify is it correct or wrong.



D -> Distance bw node and gateway

Gb-> gateway antenna gain(dB)

Gm->Node antenna gain(dB)

hb->Gateway antenna height(m)

hm->Node antenna height(m)

N->Noise margin

Frequency-> MHz

Pb->Gateway transmit power(dBm)

S->Node receiver sensitivity(dBm)

PL-> Path loss