If you’re replacing a tub
https://phxhomeremodeling.weebly.com/blog/finding-the-ideal-size-determining-how-deep-and-tall-bathroom-cabinets-should-be2113200
If you’re replacing a tub, explore alcove or corner options that fit standard dimensions to minimize structural changes and costs.