Hey man. I just made a simple program that will execute what you asked for. Hope it helps. Click the link. Then click the button with arrows that point at each other. Then you should see a green block that you can put numbers into to do what you wanted.
http://snap.berkeley.edu/snapsource/snap.html#present:Username=jbocanegra&ProjectName=Percent%20