Refactor percentageIncrease into function (for reuse).