Calculate a baseball standings gap from two records, or solve the team-win total needed to reach a target games-back value.

Required: leader wins and losses, plus team wins and losses.

Use 0 for tied; negative values represent games ahead.