There is a group template in Tines for calculating the difference between 2 dates.
Navigate to "Templates" on the left of the screen, click "Public", select "internal" and search for "Get Time Difference". You can drag the group onto your storyboard.
To understand more about the functions available for date and time, see here.
To learn more about action groups, see here.