Calculate the day of the year (between 1 and 365 or 366).
function dayOfTheYear input Integer day "Day"; input Integer month "Month"; input Integer year "Year"; output Integer dayOfYear "Day of the year indicated by day, month, year"; end dayOfTheYear;