Try not to let the inputs be non-numbers
Ensure inputs are converted to numbers
Add an ejs filter to format currency nicely
make the post url match the get url.

now I don't have to worry about errors on refresh.