@Annie ***********
one thing to also keep in mind is the timing. You didn't mention her time of flight. If her flight is by any chance in the early am of the 18th, she could be passing passport control before midnight on the 17th, and there will be no overstay at all, as she would officially have left Thailand at the time she went through passport control.