JSFiddle - React, Tailwind, and code Playground

by emilcieslar

JavaScript

function RoundTo(number, roundto){
  return roundto * Math.ceil(number/roundto);
}

alert(RoundTo(140*1.9,120));