When you create new field in AllSync, there is an option to enable formula:
Once it is enable, you can setup the formula in detail, example
subTotal = price*orderQuantity+taxAmount-discountAmount
In case of a field from main table need to sum of value from child table:
subTotal= sum(as_details, price*orderQuantity+taxAmount-discountAmount)