An simple way to calculate the damage a task in Node.JS.