Late post to this thread; I created a custom workflow activity that will take two datetime values and determine the difference between them. The activity will determine the difference in seconds, minutes, hours, days, business days, weeks, calendar weeks, months, quarters, and years. The business days calculation uses the Workflow SDK to get the Workflow settings for Holidays and Weekends. Here are some screenshots;
The custom activity will allow you to create multiple tokens. In this case two tokens are created, one token called 'Days' to determine the number of days between 01/01/2015 and 03/31/2015 and the second token called 'Business Days' to determine the number of business days between those same dates...
This image shows an edit of the 'Business Days' token...
This image shows the results...
The DateDifference activity is available at www.qfiche.com as a free download. (The download will install a 30-day trial activity. When you register the activity I will provide a free production key.)
Caveat - The activity has been tested on WF 9.1 and 9.2 but since I am accessing the Holiday and Weekend data via the Workflow SDK those function calls might change with future WF versions. My intention though is to keep this activity current and tested on future releases as well.