How to find beacon distance by the received RSSI? in Android

hi hell
I am calling getdistance method in monitoring and ranging also.but why it is not calling everytime.please reply me as fast as possible…

Thanking you…