I need a formula that will allow me to plug in the odds of one team along with the vig to output the odds of the opposing team. I am pulling my hair out on this one, which is hard to do because I'm bald. I have scoured the javascript of the various incredible betting calculation apps that SBR has to offer as well, but even the formulas in the script cannot help me with this calculation.
Basically, I want to input something like this:
Enter Team 1 odds (American): -120
Enter Vigorish (American): -110
The output should be something like this:
Calculated Team 2 odds (American): -102
Note if the vig and Team 1 odds are the same, then Team 2 odds should match Team 1 (and the vig). So if the vig is -120, then if Team 1 is still -120, then Team 2 should be -120. Basically, this has been my check in trying to calculate the various attempts I've tried to make to create it.
If American odds need to be converted to decimal, then that's fine. But ideally I'd like to input Team 1's American odds and the vigorish.
Frankly, I think I'm missing something that will make me do the Homer Simpson "DOH!!" routine, but I'll gladly settle for that embarrassment. Thanks all!