How to add two dates (time durations) together

This was an issue but found the API had already solved it. Bubble should have this feature and other ways to mess around with time durations like explained below.

Hi, to put it simply: I get an API call that returns time durations (i.e. takes 2h 32m to get from point A to point B). There are multiple durations and I would like add them together (i.e. 2h 32m + 3h 20m = 5h 52m). When I label the duration data (from the API) as ‘date’, I can subtract the values from one another but I cannot add them together. When I label the data as ‘text’ I can’t add them together. When I label the data as ‘number’ I can’t add them because there are letters in the data (i.e. 2h 32m)

Does anyone know how I can do this?

Thanks!

Nevermind, figured out there is another thing I can do with API call

BUT bubble should have this feature incase the API did not provide the sum.

Hey that is duration not the time. That’s why you are not able subtract it.

What you can do is - convert the text into number using regrex or find function and then add both the number