Hi there, I am trying to learn how to make a calculation script. I first started out trying to ask people online on javascript forums but for some reason no-one is very keen on helping me. I am not a coder or in work I am 16 and trying to create this for my ICT coursework, I am now afriad ive bitten off more than I can chew..
Basically, I have done the research as far as my forumulae is comcerend but I am having difficulties putting it all together onto a website.
Please dont shoot me if this isnt correct but this is my forumlae example
Math.round(400*(49+Math.max(count-35;0)*0.85)/count)/400
this is the problem im trying to solve:
£49 for the first 35 items
£0.85 each item thereafter user inputs total amount of items eg 400 items 400 items - 35 = 365 365 * 0.85 = 310.25 310.25 + 49 = 359.25 Total Price £359.25 Then the total price £359.25 / 400 to give the price per item £0.89 (to two decimal places)
I really nope someone can help me out here or its back to the drawing bord