function [h,m]=nexttime(hours,minutes)
%---------
h = hours;
m = minutes + 1;
if (m >= 60)
    h = h + 1;
    m = m - 60;
    if (h >= 24)
        h = h - 24;
    end
end

