calculate and explain maximum visibility