When can I take distribution from s corp

Hello, does the distribution has to be taken after fiscal year end or I can take part of distribution mid year? Knowing that I’ll make more later? Also, can I take two distribution per year? I pay a reasonable salary but I have a big income coming mid year and the money just sitting in my business. I’d rather take the distribution and invest in stock right now