Script step to get # of days between 2 portal rows dates
I have a portal and each row represents an "Event". I am looking for a way to return the number of days between the "Due Date" in the last row of the portal and the second to last row in the portal. I assume this would be done using a scrip trigger and a script but maybe there is another way. I am working in FileMaker 12.
Any help would be appreciated!