def get_quarter(month: int): return (month - 1) // 3 + 1 def get_quarter_label(month: int): return 'Q%d' % get_quarter(month)