You should be aware that there are 24 hours in a day, 60 minutes in an hour. So, to convert days to minutes, multiply the days by 24 and 60.
minutes = days * 24 * 60
The result that you obtained after the multiplication is actually the minutes equivalent of the number of days.
let days = 1; let minutes; minutes = days * 24 * 60; console.log(minutes); //1440 days = 7; minutes = days * 24 * 60; console.log(minutes); //10080 days = 14; minutes = days * 24 * 60; console.log(minutes); //20160
As you can see that the JavaScript code has given the correct result. 1 day has 1440 minutes, a week has 10080 minutes, and a fortnight has 20160 minutes.