// calculate dues void main() { object oPC=GetPCSpeaker(); int nLTime=GetLocalInt(oPC,"nCGDues"); int nNow=(GetCalendarYear()*365)+(GetCalendarMonth()*30)+GetCalendarDay(); int nDif=nNow-nLTime; nDif=nDif*2; SetLocalInt(oPC,"nDuesOwed",nDif); SetCustomToken(90001,IntToString(nDif)); }