Stuck building a time related calculator

Hi all, am building a simple app which will calculate the total time for a triathlon race. The user plugs in the selected pace for swim, bike and run and transition times and the app should provide an estimation of time to finish.
I was able to build the app with basic calculations, but when trying to convert to time, then am a bit lost.
Anyone with experience around this?

1 Like

Hi there, and welcome to the forum! I’m not as familiar with time calculations as some of the other users on here, but I would recommend you go into more detail on exactly what you’re trying to do (i.e. what are you converting to/from time? what’s the end goal? what does the data look like before and after you’re converting it?) And then if you share any screenshots of how you’re displaying the data, workflows or formulas you’ve already unsuccessfully tried, that would help other users understand not only what it is you’ve tried, but prevent redundant solutions from being offered.

If swimming speed is 2.5mph and distance is 3 miles then the total time to swim 3 miles at an average speed of 2.5 mph is 1.2 hours.

Total time (in hours) = Distance (in miles) / Speed (in mph).

You could have inputs which save as a custom state so the user can input Distance and Speed, then your output could instantly show the result.