Coordinates calculation c & c app