Flight time Calculator

Hey everyone!

I've been working on this for two weeks now, and I’m still stuck with no results. :tired_face:

Can anyone help me figure out where I'm going wrong with programming this flight time HH:MM calculator? It's driving me crazy!

I need to add or subtract multiple hours in the HH:MM format, and when I click "=", I should see the result displayed in a read-only textbox.

If someone could provide a corrected .aia file or at least a screenshot of the corrections, that would be absolutely amazing!

Thanks so much for your help—I’m still new to MIT App Inventor and really appreciate any guidance! :pray::airplane:

Calcolatrice.aia (1.8 MB)

Before diving into the math, I notice you do not take into account

  • time zone crossing
  • International Date Line crossing.

Yet you call this a flight time calculator?

Try this extension:

I don't need any time zone conversion, it's just a calculator to add or subtract multiples flight time HH:MM from a logbook.

For example I put in the read only textbox some values using the keypad and the textbook should show all the calculations and the result.

01:30
+
00:30
+
00,30

Total is 02:30

Its just a simple calculator but my knowledge with programming is still weak and I don't know how to build the code in MIT app inventor.

Here's a version using generic blocks and value procedures:
Calcolatrice.aia (1.8 MB)

Thanks guys, I try your solutions soon and I let you know

If you need a running sum, also see

Thanks man is working, now I can study and learn from it.