gripe water

Is there a specific age when you should stop giving gripe water? How do u know if your lo still needs it?