The year-to-date total (YTD) adds up monthly values since January, which smooths fluctuations. Cumulative attainment rate = cumulative actual / cumulative budget. A rate on a cumulative total is computed on the sums, never as the average of monthly rates.
Example
taux_ytd = ventes.cumsum() / budget.cumsum()