You could use fnLDAPQuery() to replace dsquery.exe, then use fnDateTime() to convert the whenChanged date to a KiXtart formatted date, then use DateCalc() or fnDateDiff() to calculate how many days it has been since the account was last modified.