Title: arithmetic operation between two custom fields variables
Last modified: October 28, 2022

---

# arithmetic operation between two custom fields variables

 *  [webandup](https://wordpress.org/support/users/webandup/)
 * (@webandup)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/arithmetic-operation-between-two-custom-fields-variables/)
 * Hi, does anyone has an idea on how to make an arithmetic operation between 2 
   variables in the custom field code section ?
    Example : The wizard generates 
   the following code for grabbing the subtotal : return (new CSimpleField(‘table’,’
   data’,’subtotal’,null,null))->GetHtml();
 * I want to divide tow of thats variables. How can i do it?

The topic ‘arithmetic operation between two custom fields variables’ is closed to
new replies.

 * ![](https://ps.w.org/woo-pdf-invoice-builder/assets/icon-256x256.gif?rev=3517675)
 * [PDF Builder for WooCommerce. Create invoices,packing slips and more](https://wordpress.org/plugins/woo-pdf-invoice-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-pdf-invoice-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-pdf-invoice-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-pdf-invoice-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-pdf-invoice-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-pdf-invoice-builder/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [webandup](https://wordpress.org/support/users/webandup/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/arithmetic-operation-between-two-custom-fields-variables/)
 * Status: not resolved