There is no restriction and you can apply even on the same day. However, to increase your chances of getting approval, it is better to add more information to your application that would support your case and/or at least highlight key points clearly to argue your case against the reasons for the denial of visa in your first application.
There is only one answer for this: "as soon as you can address the reason for refusal".
So for example if it was refused because you forgot to send your financial support, and you have it at hand, you can re-submit as soon as you get your refusal (same minute).