How can i totalize the amount of time that a Tag has an especific value in a day?