Calculated total not saving to DB

If the problem is that the .value is not written to the db, it´s because, per documentation (https://www.wix.com/code/reference/$w.TextInput.html#value) .value does not change the value in the dataset. You have to use the dataset´s setFieldValue and then save it.