quarter function

Get the fiscal quarter and semester of a date-time