t1;
                costMarket2 = sharesMarket2 * (outcome2 === "YES" ? p2 : (1 - p2));
            } else {
                outcome1 = "YES";
                outcome2 = hedgeRatio > 0 ? "NO" : "YES";
                sharesMarket1 = betAmount / p1;
                sharesMarket2 = Math.abs(hedgeRatio) * sharesMarket1;
                costMarket2 = sharesMarket2 * (outcome2 === "YES" ? p2 : (1 - p2));
            }

            const shareCalculationsElement = document.getElementById('shareCalculations');
   