Add an attribute to all the number inputs you want to be added up, then add the attribute to a span or an input, and it will be prefilled.