gcg distance calc