Math Algorithm Problem

Math Algorithm Problem

Hey everyone, im new here and have been using Jquery for a little more than 6 months now. I dont fully understand Javascript so this is a nice start even if it is simplified.
 
My problem is i have been trying to create a input field that auto updates a textfield dynamically by first getting a number then multiplying it depending how many are selected.. but instead of multiplying it by just one number.. the higher the number the lower the number it must be multiplied by and then at the end all the workings out must be added together.. for example:

this is ment for handling money.. so:

An A4 copie costs 95p.. but after you have bought 1 copy the price then becomes 35p for every copy.. then after 20 copys bought the price is 15p... so say for instace i bought 18 sheets.. the price working out would be like:

1 A4 = 95p
2 - 20 = 35p * 17 = 595






 
Total = £6.90
 
you can find the page here: http://www.theultimatecopyshop.com/prices.html  under copies..
 
Any help would be really helpful many thanks.