Fasting calculation

Title: How can I calculate and save fasting duration (in hours/minutes) between two DateTime fields?

Post:

Hi everyone,

I’m building an intermittent fasting log in my Adalo app. I have a button “End Fasting” that should calculate the duration between the current time and a saved “Start Time” (DateTime property), then save that difference (in hours and minutes) to a “Fasting Duration” field.

I’m having trouble getting the time difference to calculate correctly and display properly.

Has anyone done something similar? What’s the best way to calculate and store the duration between two DateTime values in Adalo?

Thanks!