code: function calculateDueDate(state) {
    var result = new Date(state.lastReviewed);
    result.setHours(3, 0, 0);
    result.setDate(result.getDate() + Math.ceil(state.interval));
    return result;
  }
docs: assumes that the day starts at 3:00am in the local timezone