Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent quarter ends being assigned to next quarter #16

Merged
merged 1 commit into from
Dec 26, 2020

Conversation

oliver-hohn
Copy link
Owner

Previously, this would assign the end of the quarter to the start of the next quarter as the "month count" starts at 1 and not 0.

For example, for March, month count: 3, the previous implementation would assign it to quarter 1 ("01_apr_to_jun") as 3/3 == int(1). In addition, this would error for the month of December, as the quarter index 4 is not handled.

Previously, this would assign the end of the quarter to the start of the next quarter as the "month count" starts at 1 **and not** 0.

For example, for March, month count: 3, the previous implementation would assign it to quarter 1 ("01_apr_to_jun") as `3/3 == int(1)`. In addition, this would error for the month of December, as the quarter index 4 is not handled.
@oliver-hohn oliver-hohn merged commit 6b55da7 into main Dec 26, 2020
@oliver-hohn oliver-hohn deleted the correct-month-index branch December 26, 2020 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant