The present invention, in some embodiments thereof, provides a method and device for automatically calculating, prior to an IOL (intraocular lens) implantation procedure in a patient, a power and an axis location of the IOL in the implantation procedure, the method comprising: inputting to an electronic device keratometry parameters of the patient inputting to the electronic device surgical parameters of the IOL implantation procedure on the patient analyzing the patient keratometry parameters and the surgical parameters by the electronic device and automatically determining by the electronic device the power and the axis location of the IOL in the implantation procedure in response to the inputs.