Fixed percentage calculator, should now give a value between 1 and 0.