currentmonth = firstmonth
currentmonth = mod(currentmonth+1,nmonthyear)
if ( currentmonth .eq. 0 ) then
currentmonth = 12
if ( currentmonth .eq. 1 ) then
numdays = numdays + ndaymonth(currentmonth,lycurrent)
lastday = numdays + ndaymonth(currentmonth,lycurrent)
integer currentmonth