Betting calculators: margin, accumulator and odds converter

Work out the margin of a bookmaker from its odds, the payout and the true chance of an accumulator, and convert decimal, fractional and American odds.