Include active tasks in pending hours calculation

Signed-off-by: Marco Costalba <mcostalba@gmail.com>