[SOLVED] How can add a '+' to this phrase?

Hello, me again!

I have a timer which displays the users total time recorded. When the user clicks a button, I show a popup which gives the user a chance to edit the total time manually if they wish. The idea is that the total figure will be the saved time x hourly fee, but there is no ‘times’ operation to choose from.

For content, here’s how the final popup will look. You’ll notoice the total sum is wrong, which is due to the fact there is no ‘times’ operation;

The way I display the time is shown below, I show the hours in one input and the minutes in the other so the user can manually change the time.

When I try and add the hour's value + minute's value x hourly fee I am finding that there is no add symbol?

I also would like any advice about how to actually make the calculation, for example what is 1 hour 25 mins x £10? It’s not 1.25 x 10 because 25 minutes is not 25% of an hour. I suppose I could calculate the hourly fee / 60 and then times that by the number of minuites.

The input’s value is a text… you can only do maths operations with numbers…

So change the input to a number.

Thanks mate, I have tried an integer (number) but it’s not liking it, just red text! I think the issue may be that I’m referring to a date. I can’t figure out how to take the time (date input) from one group, and display that as a number in a popup.

If the inputs content type is a number then it’s initial value must also be a number (obviously)…

Currently you’re trying to set the initial value to a text.

The content format is a number and the initial content is referring to the repeating group, which uses text inputs. I am not sure how to set the initial value to a number in this case because I am trying to display the text inputs on the popup’s number input.

The only solution I can think of (which is clumsy) is to save both the total hours and the total minutes to the database prior to opening the popup. This means I can pull those two figures from the database, but I am sure there’s a simpler solution!

Just delete the formatting to keep it as a number.

I don’t know how to delete formatting or where the formatting should be deleted from, am totally confused with this one :confounded:

I think I have zeroed in on the thing which is causing confusion. This isn’t directly related to how to format the results, but it needs to be sorted out first I think. When I try to display the total recorded time on a separate group or popup, I am unable to add up (:sum) all the individual shifts. I think the reason is that I need another datatype which would act as the parent ‘recorded-timer’ and within that I would have the individual ‘shifts’.

I think this particular task is actually beyond what I can achieve at my current level so I will need to get a freelancer to do this. I say that because I don’t want to waste your time explaining because I can feel I won’t understand - usually the task is within grasp and your help is excellent but this is a bit too advanced for me!

So funny, I resided to the fact I would have to pay someone to do this but randomly I woke up this morning realising what you meant! The formatting you referred to was in the Initial content box (which I removed and that did the trick!).

It’s pretty common for tradespeople to round-up their final bill to the nearest 15 mins or hour etc so I want to give them total freedom to override the displayed timer result. I spent a large part of today working on this and I think I am close to resolving it!