For instance, if the user types the amount of an item, including the rate and VAT, we need the system to automatically calculate rate and VAT using the quantity and the amount.
How do we do this?
Maybe this can serve as inspiration. Plenty of values get calculated here.
Your comment, and this page helped. Thanks a lot!