calculate lenses