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;