Denisse walks you through how to Calculate Purchase costs using a Code Task.
When en email is sent with an order request, the workflow is ran, variables pass over the information from the email to the run, AI Task parses information, and Code Task calculates the quantity x the product cost x tax