function p_vacancy = vacancy_this_span ( span )

%*****************************************************************************80
%
%% dvacancy_this_span() returns probability of a vacancy in a given span.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 January 2025
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer span: the number of years in the future.
%
%  Output:
%
%    real p_death: the probability that this judge will die
%    within the next span years.
%
  p_no_vacancy = 1.0;

  for index = 1 : 9
    p_death = die_this_span ( index, span );
    p_no_vacancy = p_no_vacancy * ( 1.0 - p_death );
  end

  p_vacancy = 1.0 - p_no_vacancy;

  return
end

