add functions to calculate calendar quarters