Edited formulas to properly calculate values. Added dirty .append() calls to format as a percentage.