I have an API that when a task is updated it will check if the dayOffset is changed, if so it will increase/decrease accordingly:
const oneDay = 24*60*60000