Ecommerce Shopify WordPress Discussion

Compound calculator [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 12 hours ago. Improve this question I found a compound calculator for wordpress but it calculates the interest on a annual interest, I would like it to calculate on a monthly compounding on the input instead, can someone help. Code: (function(){ var due = 0, A = fieldname5, /* Payment */ P = fieldname1, /* Start Amount */ r = fieldname2, /* Annual Interest Rate 5% */ n = fieldname3, /* Compound Frequency */ t = fieldname4, /* Years of Growth */ p = fieldname6, /* Payment Frequency */ rate = Math.pow(1+r/n,n/p)-1, nper = p * t, F = (P+(due ? A : 0))*Math.pow(1+rate, nper) + A*( (Math.pow(1+rate,nper) - 1)/rate ) - (due ? A : 0); return PREC(F,2); })() I want it to work as this one: https://tackletrading.com/tools/compounding-gains-calculator/?fbclid=IwAR3E3iZD85fY6I478-e2hmFk4qbiYoLOSUP110DS6mKJ6_tTklsmEq55gOU I tried to get Chatgpt to help but not working.
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.