Even if your visa expires while in the US, you will be fine as long as you leave the US within the 180 days stay per entry limit.