function [ y, j ] = j_borrow_roman ( y, j )

%*****************************************************************************80
%
%% j_borrow_roman() borrows year-days from years in a Roman date.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 June 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer Y, J, the YJ date.
%
%  Output:
%
%    integer Y, J, the YJ date after borrowing.
%
  while ( j <= 0 )

    y = y - 1;

    days = year_length_days_roman ( y );

    j = j + days;

  end

  return
end
