yup, you could set the percentage in the database using a decimal:
0.20
for 20%
store that in a session and use the session in the calculation, where you have entered 0.20 use:
$_SESSION['percentage']
Assuming the session is named "percentage" ,instead.