completed logic for Percentage Calc