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.
This did not save the end date
so I assigned values to action result to calculate off of these as per the screenshot below
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.
Here's my activity displayed at one hour. I change it back to 30 min
The I stretch it to 60 min and get this. 4PM not sure why the seconds
Then this...again not sure why the seconds
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.
Hopefully this will give you enough to troubleshoot it.