Array operations on structures.

Good morning @Mind-Brain .

Thank you very much for helping me first of all.

I have done it as you told me, but it does not do what I want.

In code 1, the result of the multiplication of the "Production- and “Worker” is added to the float “Total”. Every second this multiplication is reproduced again and added to the total, together with the previous operation. I leave some images of the result of code 1 and code 2 and I give you a written example as well.

Production: 5
Workers: 2
Total: 0

After one second:

Production: 5
Workers: 2
Total: 10

After another second:

Production: 5
Workers: 2
Total: 20

I would also like the total of each index in the array of structures to be reflected in the UI. For it I had thought of saving the text inside each index as a variable and to have each one its text saved inside.

I leave you the result of the operation in the code 1 that is how I want it to be. The result is 60 x 2 and it is added in the variable “Total”, 60x2 = total 120, pass one scond, 60x2 = total 240, etc. The red part is the result, the blue part the operation and in the green part, the entered data:

and the code 2 that repeats the operation every second, without accumulating in each operation, as you can see in the blue part that the result is always the same, the data of the index is in the green painted zone and yellow. The blue painted is the code. The operations instead should be in the first index 5x2 = total 10, pass one second, 5*2 = total 20, etc, and in the second index 40x1: total 40, pass one second, 40x1= total 80, etc. :

Thank you very much for the contribution! Hopefully we can solve it, because I’ve had this problem for almost 1 year.

Best regards.