This question already has an answer here:
I am traveling to the US with my daughter in May 2018. Her US visa expires in October 2018. We are back in our home country in a month. Does she have to have at least 6 months left on her visa at the time of entry in the USA.