I have a field in my activity table call SchedDuration. Now that the calendar lets us resize the activity, I need to calculate my schedule duration. I tried doing this and I'm running into a few issues
I made a copy of the calendar screen...
First, I tried calculating the date difference using this action.
![](http://content.screencast.com/users/combook/folders/Method%20BETA/media/f5a17954-df15-4765-8d93-b916ee695841/12.11.2014-17.png)
This did not save the end date
![](http://content.screencast.com/users/combook/folders/Method%20BETA/media/e138575e-c39f-466a-be8a-8a1972871e51/12.11.2014-17.png)
so I assigned values to action result to calculate off of these as per the screenshot below
![](http://content.screencast.com/users/combook/folders/Method%20BETA/media/57c787d1-b4d5-4a46-9bed-5bc5c0714750/12.11.2014-17.png)
This works, but I'm getting inconsistent results...
If an activity is scheduled for 30 minutes, it works just fine. When scheduled for one hour it returns a difference of zero minutes.
I added some show message actions so you can follow my results.
![](http://content.screencast.com/users/combook/folders/Method%20BETA/media/e8b865fe-6d4d-42cf-9d8f-905439519cc5/12.11.2014-17.png)
Here's my activity displayed at one hour. I change it back to 30 min
![](http://content.screencast.com/users/combook/folders/Method%20BETA/media/e803f0b7-2713-4a12-aa4f-1e7c77082d24/12.11.2014-17.png)
The I stretch it to 60 min and get this. 4PM not sure why the seconds
![](http://content.screencast.com/users/combook/folders/Method%20BETA/media/9ac87801-4cca-46e8-9a78-8891abbd07c7/12.11.2014-17.png)
Then this...again not sure why the seconds
![](http://content.screencast.com/users/combook/folders/Method%20BETA/media/b364e7a3-32be-4987-a666-33d0da22c71f/12.11.2014-17.png)
Then this...This should be 60. When I stretch it to 30 minutes it displays 30. When I stretch it to 60 minutes it displays 0. When I stretch it to 90 minutes again I get 30. When I stretch it to two hours I get zero.
![](http://content.screencast.com/users/combook/folders/Method%20BETA/media/6dfbaf7a-5520-497b-b12a-8d27fb0d361f/12.11.2014-17.png)
Hopefully this will give you enough to troubleshoot it.