You shouldn't do the formula until he's not puking/diarreah anymore, that stuff can upset the tummy.

Does he have wet diapers? Does he have tears when he cries, spit/slobber in his mouth? Those are usually signs that hydration is okay and all of that.