Oh, and your method is ok to be fair, it will always give you 70% of the pot, since what you are doing when you move the decimal place over is dividing by ten, so your formula would look like this...

b = 7p/10

If p=100, then b = 70, or 70%.