The maximum voltage is specified in the driver data sheet. No calculation necessary. Here is the specification from the TB6600 data sheet.
Supply voltage up to +40 VDC, Output current up to 4.0 A (PEAK)
You certainly do not have to run at the maximum. I run the steppers on my 3D printer, mini CNC engraver and my 2D plotter at 12V (using DRV8825 drivers that have a max supply voltage of 45V). Like I said, if you want maximum speed and torque, you need to use the maximum specified supply voltage of the drivers and set the drivers for the maximum coil current specification of the stepper motors. If you can get the speed and performance at lower voltage and current then use them. If you are afraid of using the maximums, get a better stepper motor and/or driver that don't need to operate so close to their maximum specifications and still give the required performance.
The stepper motor basics thread may have information of interest.