Fixed percentage calculator, should now give a value between 1 and 0.
Added changes for percentage, now return a value between 0 and 1.