Skip to content

Instantly share code, notes, and snippets.

@peterkappus
Created November 14, 2016 11:59
Show Gist options
  • Save peterkappus/05a77d95a4b209d1d78fe2cec8555844 to your computer and use it in GitHub Desktop.
Save peterkappus/05a77d95a4b209d1d78fe2cec8555844 to your computer and use it in GitHub Desktop.
Convert month number to financial quarter (e.g. month 3 => quarter 4; month 10 => quarter 3)
(((month_num+8)%12)*4/12)+1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment