You can use the Math.floor () function to round
$("#s").text(Math.floor((new Date - x) / 60000 + "Minutes Wasted"));
or Math.ceil (), which is "round up"
$("#s").text(Math.ceil((new Date - x) / 60000 + "Minutes Wasted"));
or Math.round (), which are around or up or down, where it is closer to:
$("#s").text(Math.round((new Date - x) / 60000 + "Minutes Wasted"));
source share