Calculating days and hours between two timestamps - Almost there.. Need a tweak on this!

Error on first line, the division is done first, so parenthesis are required.
Also the diff -= lines are not required.

let diff = (1675669264854 - 1675559264854) / 1000
var days = Math.floor(diff / 86400);
var hours = Math.floor(diff / 3600) % 24;
var minutes = Math.floor(diff / 60) % 60;
1 Like