I am trying to make a shop for self learning but i have a small hiccup!
I have this list of items that has a USD value assigned to it. But I want to make it so if they buy a "100 GB/s" it should be cheaper than buying 100 "1 GB/s" or 10 "10 GB/s". I have been trying for ages but i can't seem to figure it out.
Currently if they buy 100 of "1 GB/s" it will cost $7200 which is the value of one "100 GB/s"
If I'm unclear please write down below so I can explain further.
How do I do it?
100 MB/s = $8 200 MB/s = $14 300 MB/s = $22 400 MB/s = $29 500 MB/s = $36 600 MB/s = $43 700 MB/s = $50 800 MB/s = $58 900 MB/s = $65 1 GB/s = $72 2 GB/s = $144 3 GB/s = $216 4 GB/s = $288 5 GB/s = $360 6 GB/s = $432 7 GB/s = $504 8 GB/s = $576 9 GB/s = $648 10 GB/s = $720 11 GB/s = $792 12 GB/s = $864 13 GB/s = $936 14 GB/s = $1008 15 GB/s = $1080 20 GB/s = $1440 25 GB/s = $1800 30 GB/s = $2160 35 GB/s = $2520 40 GB/s = $2880 45 GB/s = $3240 50 GB/s = $3600 60 GB/s = $4320 70 GB/s = $5040 80 GB/s = $5760 90 GB/s = $6480 100 GB/s = $7200