FUNCTION NoOfDaysInYear(lnYear) RETURN DATE(lnYear+1,1,1) - DATE(lnYear,1,1) ENDFUNC lnDays = NoOfDaysInYear(2005) ?INT(lnDays/11), MOD(lnDays,11)