Why not simply setting ``animInfo.end = new Date(animInfo.start.getTime() + animInfo.duration)`` ?