Tweak percentage logic to check total