Calculations of inelastic cross sections for rotational excitation