Fix end of quarter bug, account for timestamps, provide ability to get beginning/end of any quarter