• Thanks for posting this, I was just about to write something similar when I came across your post.

    There is one small thing that I wanted to mention: In the United States, companies have the option of selecting their own fiscal year. For example, my companies fiscal year is October 1st to September 30th of the following year.

    The only proviso is that a company may not change their fiscal year without informing the regulatory authorities (IRS, SEC, etc).

    So, I'm going to adapt your code to my companies fiscal year and call it good. Thanks!