time online
function time(hrs, mins) { let totalMins = hrs * 60 + mins; let totalDays = Math.floor(totalMins / (24*60)); let remainingMins = totalMins % (24*60); let remainingHrs = Math.floor(remainingMins / 60); return `${totalDays} day(s) and ${remainingHrs} hour(s)`; } time(10, 0)