Suspected problem

_PCSkillCheck = Math.max($upgradeMultiplierMedicine, $HackingSkillMultiplier)

This is supposed to select the larger discount. Which, since it multiplies, would be the smaller of the two.