def generate_fiscal_month(date):
    """ Generate fiscal period based on the date provided """
    if date.month in [10, 11, 12, "10", "11", "12"]:
        return date.month - 9
    return date.month + 3