Each airline has its own criteria for when a bag is considered lost, usually 14 to 21 days.
When you arrive at your destination and your bag is not there, however, you should file a claim immediately before leaving the airport.