If your baby has a yeast infection instead of a rash and you treat it at home it should go away within 3 days.
If the babies yeast infection lasts longer than 3 days then you should take your baby to the doctor to get better treatment of the babies yeast infection.