Probability of Detecting a Planetary Companion during a Microlensing Event