This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> // Get all input elements const dealPriceInput = document.getElementById('dealPrice'); const dealOfferSelect = document.getElementById('dealOffer'); const subscriberBaseSelect = document.getElementById('subscriberBase'); // Get all output elements const totalCostSpan = document.getElementById('totalCost'); const impressionsSpan = document.getElementById('impressions'); const ctrRateSpan = document.getElementById('ctrRate'); const clicksSpan = document.getElementById('clicks'); const cvrRateSpan = document.getElementById('cvrRate'); const ordersSpan = document.getElementById('orders'); const revenueSpan = document.getElementById('revenue'); const roasSpan = document.getElementById('roas'); const expectedRoasSpan = document.getElementById('expectedRoas'); // Subscriber Base Values (for calculation) const baseValues = { low: 1000000, // 1 Million for "Below 10 Lakh" base medium: 3000000, // 3 Million for "10-50 Lakh" base (mid-point example) high: 9000000 // 9 Million for "60 Lakh - 12 Million" base (mi |