Change number label based on query period