def _is_displayed(row, current_quarter, current_offset):
    """
    Return true if message is for current quarter and current date
    falls within the display range for a given message.
    Message will display for 7 days.
    """
    display_quarter = row[2]
    display_offset = int(row[3])

    return current_quarter == display_quarter and \
        (display_offset + 7) > current_offset >= display_offset