Hello everyone!
Something is bothering for hours now and I can't figure out what's wrong. As wix code doesn't have the pow() function I assumed we could use " ^ " but it seems like it doesn't work...
I'm trying to make a basique tool to transform annual rates into monthly rates. Here is a piece of the code, if someone has a clue on how to do that...
//growth from year n to n+1
var Aug1
//current year's profit
var Rn
//next year's profit var Rn1
...
Rn=$w('#input6').value Rn1=$w('#input7').value
Aug1=(Rn1/Rn-1)*100
...
$w('#slider15').value=Aug1
//monthly growth needed to get the second year's profit
$w('#slider17').value= ((1+Aug1/100)^(1/12))-1
Many thanks in advance !
PS : currently for a growth of 100% in 12 months it says it's 1% per month...
Alright I figured it out, in case someone has the same issue, we just need to use ' ** ' instead of '^ '!
So many hours of my life wasted haha
Thank's Steve Cropper and abergquist for your help !