I have the code for calculator that I would like to use on my web-site. I managed to change the html part to match what I need, but don't know javascript to change the function and to make it work. I'm attaching the code that I have and Excel file that shows what I have in mind. And here is the description:
Choose size of the tiles:
4.25x4.25" = $10.00 each
6x6"= $20.00
8x8"= $40.00
12x12"= $80.00
Insert dimensions of your project:
length: _______inches
width: _______inches
Your project is:
____X_______ tile long, you have ____A___inches space left
____Y_______ tile wide, you have ____B___inches space left
You need __(XxY)___ tile for your project.
Cost: $ _________
X, Y - should be whole numbers only since those tiles cannot be cut. The rest should be passed in inches as A, B value.
For somebody who know javascript it's very simple project. I cannot pay more than $80.