Open this example in the interactive library
Source code
const setup = 12000,
price = 900,
unitCost = 350;
console.log(Math.ceil(setup / (price - unitCost)));
Sample output
22

Open this example in the interactive library
const setup = 12000,
price = 900,
unitCost = 350;
console.log(Math.ceil(setup / (price - unitCost)));
22