how to calculate diameter of a lens