To get your nightstand height just right, aim for the top of the surface to sit...
https://www.mediafire.com/file/ci4j8luw7hfr284/pdf-67918-84454.pdf/file
To get your nightstand height just right, aim for the top of the surface to sit roughly 5 to 10 cm below your mattress-top. This makes grabbing a glass of water or your phone feel effortless without having to overreach