Lens formula and magnification