Capitalism has its own contradictions. it will come to an end of its own accord when the contradictions in its mode of production reach the highest level. When capitalism stops investing in progressive things, periodic crises disrupt conventional theories, the enormous demands for climate improvement (by stopping mining exploitation from third world countries), the development of automation technology which increasingly reduces capitalist production relations, and the movement of capital grows increasingly uncontrolled, then capitalism will move closer to socialism.