Generate final cost using calculation on the form