cow milk allergy

how to know for sure if ur newborn has cow milk allergy/ sensitivity from formula ?