The diagnosis of colic is primarily clinical and is based on the "rule of threes": crying for more than three hours a day, for more than three days a week, for at least three weeks. Pediatricians rule out other potential causes of excessive crying, such as infections, allergies, or other medical conditions, before confirming a diagnosis of colic.