How can I apply advanced calculations to multiple fields?