Skip to content

Instantly share code, notes, and snippets.

View kumarjitender9837-bit's full-sized avatar

kumarjitender9837-bit

  • Joined Aug 16, 2025
View GitHub Profile
<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