We calculated the contributions of the two-particle one-hole (2p-1h) and the one-particle two-hole (1p-1h) excitations to the imaginary partW(E, R) of then-40Ca optical potential. The bound single particle states and energies of the40Ca nucleus are calculated quantum mechanically by solving the Schrödinger equation with a Woods-Saxon potential. For the excited states in the continuum we use the Thomas-Fermi approximation. Different forms of contact residual interactions have been tested. A combination of aδ-force and a smeared SDI can fit the phenomenologicalW(E, R).