Implemented distance formula
The formula implemented is to find the distance the object from the camera