Improved PercentOf

I followed @moollaza ’s tips and I removed all the comments. I hope
this code is better than the previous ;)