get sale by time