add logic in the backend to distance in water basic report