# FORMULA: (Percentage2 – Percentage1) * 100 / (Percentage1)
echo "$BIGGER_VALUE" "$SMALLER_VALUE" | awk '{print ($1-$2)/$1*100}'
# if the smaller value will appear in the bigger value, the result will be 0
echo "scale=2;($BIGGER_VALUE-$SMALLER_VALUE)/$BIGGER_VALUE" | bc | cut -d'.' -f2
# percentage from a number
# Number = the number itself
# 80 = the precentage from that number
echo $(( $number*80/100 ))