JSFiddle - React, Tailwind, and code Playground

by luwes

JavaScript

const sizeInBits = 1600000;

console.warn(
(Math.max(0, 1 - sizeInBits / 1.6e6) * (200 - 150)) + 150);