def get_time_period(submission):
    """ Return the time period for the given submission

        Arguments:
            submission: the submission object to find its end window

        Returns:
            the time period of the submission
    """
    if not submission.d2_submission and submission.is_quarter_format:
        sub_quarter = submission.reporting_fiscal_period // 3
        sub_year = submission.reporting_fiscal_year
        time_period = 'FY {} / Q{}'.format(str(sub_year)[2:], sub_quarter)
    else:
        time_period = submission.reporting_start_date.strftime('%m / %Y') if submission.reporting_start_date else ''
    return time_period