Hello,
I am trying to create a calculator that calculates utilization and credit age.
The 1st container box is used to collect the users information.
The 2nd container box is used to display the user input information to confirm.
After the user selects “Yes, it shows 1” (<— only one i’m working on at the moment ) and puts in their information…
I need a code that will divide the Balance Owed (#BalanceOwed1) by the Credit Limit (#CreditLimit1) for the credit utilization (#Score1)
THEN…
I need the users input to display on the next container box fields.
Link: https://editor.wix.com/html/editor/web/renderer/edit/75107c37-3f77-48e5-a82e-3e018c4376e2?metaSiteId=6d4e5ac8-3d67-4608-889e-49a680ccdcac&editorSessionId=7d79ecf6-c0a4-4609-8657-0f099bce4b97&referralInfo=my-account
Located Under “Free Credit Analysis” menu item.
Thanks So Much!
-newbie
In the Calculate1_onclick() function, you should add:
$w(“#score1”).text = $w(‘#BalanceOwed1’).value / $w(‘#CreditLimit1’).value * 100 + “%”;
Yes!
It works perfectly!!
another quick question please!
is there a code that can subtract the users input (Month and Year) by the current Month and Year
to get the “Age” of the account as a decimal?
maybe something similar to a birthday calculator?
also,
is there a code that can erase the users input when the “reset” button is clicked?
your help is truly appreciated!!!
Thanks
This simple example will help you a little with calculations: Attendance Fees
We appreciate your interest in really getting the most out of Wix Code and how much you want to learn. Please understand that if you are going to work with code extensively in the product and not just the features in the user interface, you will need to familiarize yourself with basic coding concepts to accomplish what you want. We are happy to get you pointed in the right direction and get you started with what the code should look like, but you’ll need to take it from there.
I would suggest visiting the following sources of information on programming in Javascript:
sorry, that isnt quite what I am looking for.
I’ll try to post again.