Can I do calculation based on the audio annotation tags?

I am wondering if I can do some calculation based on the audio annotation tags? For example, I would tag some recordings as positive and some as negative, can I calculate the sum time for all positive audios and negative audios and export the sum time?