Source: https://money.stackexchange.com/questions/43602/calculation-timing-and-taxes-related-to-profit-distribution-of-an-s-corp