As this title says I'm gonna be showing off some of the code I use for a miner cost calculator I've made, I thought instead of giving everyone the program (which I might do in the future) that I would let some people think about how they could use it. This is in visual basic code or vb.net but it is easily translatable to other languages if you know what you are doing. Also I used vb.net cause it is very easy. Code: Dim dminer1 As New Integer = Integer.parseInt(text) Dim dminer2 As New Integer = Integer.parseInt(text) dminer2 -= 1 For level As Integer = dminer1 To dminer2 ecoins += (500000 + (500000 * level)) Next I would love to see some programs pop up with this, so have some fun! Just saying, for integers make sure it isn't over a certain amount or else it'll crash, I could use doubles but it might come out as this: 1.0E8 or something like that it just isn't worth the work for people to try to figure that out.