def get_financial_year(date_obj):
    """Gets the financial year for a given date."""
    if not date_obj:
        return None
    if date_obj.month > 3:
        return date_obj.year
    return date_obj.year - 1