def METHOD_NAME(
    budgets: BudgetDict,
    account: str,
    date_from: datetime.date,
    date_to: datetime.date,
) -> dict[str, Decimal]:
    """Calculate budget for an account.
    Args:
        budgets: A list of :class:`Budget` entries.
        account: An account name.
        date_from: Starting date.
        date_to: End date (exclusive).
    Returns:
        A dictionary of currency to Decimal with the budget for the
        specified account and period.
    """
    budget_list = budgets.get(account, None)
    if budget_list is None:
        return {}
    currency_dict: dict[str, Decimal] = defaultdict(Decimal)
    for single_day in days_in_daterange(date_from, date_to):
        matches = _matching_budgets(budget_list, single_day)
        for budget in matches.values():
            currency_dict[
                budget.currency
            ] += budget.number / number_of_days_in_period(
                budget.period,
                single_day,
            )
    return dict(currency_dict)