working logic to determine calendar quarter relative to the customer.