Edit: Sorry for late Edit, Without two parameter you cannot calculate it, So first need to fill user Camera height from ground.
I have
Its not possible way to get distance while varying ground-mobile distance dynamically from each person. Manually user have to set the height of the mobile each time to calculate.