Event handlers that are created by Property and Events panel are separate functions and not included in the main code headed by onReady statements, sorry if I misled. You might have to delete and re-create the handler if it has been moved. Use console.log statements to check if the handler is working, and if your values are calculated and converted to displayable formats.
Input elements (boxes) can be connected to a database, or not, whatever is needed.
If all else fails, if I can see what your collection looks like, maybe I can re-create your code here…