Computing total