The only exception of calculating mechanical advantage is by multiplying resistance force by effort force. For example, in calculating the mechanical advantage of a lever, we consider its output and input forces. The equation would now be as follows:
Mechanical advantage = output force / input force