def METHOD_NAME(
    budgets: list[Budget],
    date_active: datetime.date,
) -> dict[str, Budget]:
    """Find matching budgets.
    Returns:
        The budget that is active on the specified date for the
        specified account.
    """
    last_seen_budgets = {}
    for budget in budgets:
        if budget.date_start <= date_active:
            last_seen_budgets[budget.currency] = budget
        else:
            break
    return last_seen_budgets