Title: Help with log() Formula
Last modified: August 21, 2016

---

# Help with log() Formula

 *  Resolved [Mystech](https://wordpress.org/support/users/mystech/)
 * (@mystech)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/help-with-log-formula/)
 * Hi, love the plugin but my math is very rusty and the syntax on some formulas
   just isn’t clicking for me. Any recommendations on how to:
 * Convert Watts to dBm:
    dBm = 10log(Watts x 10^3)
 * Thanks!
 * [http://wordpress.org/plugins/calculated-fields-form/](http://wordpress.org/plugins/calculated-fields-form/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/help-with-log-formula/#post-3988286)
 * Hi,
 * Suppose the Watts field is named fieldname1, so the equation would be:
 * 10*log(fieldname1*pow(10,3))
 * Best regards.
 *  Thread Starter [Mystech](https://wordpress.org/support/users/mystech/)
 * (@mystech)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/help-with-log-formula/#post-3988335)
 * Thanks for the fast reply!
 * Sadly, no luck with the formula provide. Other, simpler formulas work fine however.
   Other things I’ve checked:
 * – Only one form per page
    – fieldname number correct
 * Screenshot: [http://i.imgur.com/Lu4H5kk.jpg](http://i.imgur.com/Lu4H5kk.jpg)
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/help-with-log-formula/#post-3988336)
 * Hi,
 * Could you send me the link to your page for checking the equation, please?
 * If you prefer, use our support page:
 * [http://wordpress.dwbooster.com/support](http://wordpress.dwbooster.com/support)
 *  Thread Starter [Mystech](https://wordpress.org/support/users/mystech/)
 * (@mystech)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/help-with-log-formula/#post-3988339)
 * Here it is configured with the formula you provided above:
    [http://spc.itswordpress.com/tools/pl-watts-dbm/](http://spc.itswordpress.com/tools/pl-watts-dbm/)
 * Interesting, I can’t get a plain log function by itself to work either:
    log(
   number)
 * Tested in IE7/8/9, FF and Chrome.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/help-with-log-formula/#post-3988344)
 * Hi,
 * The issue is very simple, our plugin assigns all methods of “Math” class, to 
   the object “window”, but the method “window.log” is defined in the javascript
   file [http://spc.itswordpress.com/wp-content/themes/nexus/js/plugins.js](http://spc.itswordpress.com/wp-content/themes/nexus/js/plugins.js)
 * In this case you should modify the equation like below, to avoid conflicts:
 * 10*Math.log(fieldname1*pow(10,3))
 * Best regards.
 *  Thread Starter [Mystech](https://wordpress.org/support/users/mystech/)
 * (@mystech)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/help-with-log-formula/#post-3988347)
 * Brilliant! Thank you so much for your help!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Help with log() Formula’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form - AI Form Builder for WordPress - Contact, Payment, Quote, Quiz & More](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [calculate](https://wordpress.org/support/topic-tag/calculate/)
 * [log](https://wordpress.org/support/topic-tag/log/)
 * [Math](https://wordpress.org/support/topic-tag/math/)

 * 6 replies
 * 2 participants
 * Last reply from: [Mystech](https://wordpress.org/support/users/mystech/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/help-with-log-formula/#post-3988347)
 * Status: resolved