In the Quantity text field double click on it go to events select onchange event and call a microflow
In that microflow use change attribute object will be order , member will be Total amount , In the value section u write the logic like Price*Quantity based on your requirement.