The calculation of neutron cross-sections from optical potentials