Optic GUI

Fixed KM error in calculation