Well, the online forms were designed to collect data and not to do calculations. So, as Brenden said, I would rather create a custom web part for this custom need.
Anyway, have you tried using the option "Continue editing"? This will leave the entered values in the form and when you edit them and submit, it creates a new record - it looks like this is what you are looking for.