How to auto-calculate one of the 2 fields - amount and balance - to update based on the value in another

Some ideas discussed here.