Note that the percent calculation is a litle weird, for example 20 and 10 will return 2 for 200% of 10 and 3 and 10 will return .3 for 3%. It's not consistent but it makes sense.