The
moment of inertia of a cube depends crucially about what axis you choose.
Which axis do you think is relevant here? Why?This result looks like it derives from one of the SUVAT equations for rotational motion. I am skeptical, however, because it appears to be missing a factor of two. You have not justified this formula in any way.
So let us try to fill in with the justification that you should have provided...
The way to minimize the time needed to obtain a 180 degree rotation is to turn the thrusters on and leave them on until the desired rotation angle has been achieved. We assume that the craft is starting without rotation.
We will accept that the craft will be rotating rapidly at the end of the rotational burn. This is a questionable assumption. If one is trying to maneuver a craft, one would not normally want the craft to remain rotating.
We can start with ##\theta=\frac{1}{2}\alpha t^2## where ##\theta## is the rotation angle (in radians) achieved after ##t## seconds with constant angular acceleration ##\alpha##.
We want to solve for the required time ##t##. So we divide both sides by ##\frac{1}{2}\alpha## and get ##\frac{2 \theta}{\alpha}=t^2##.
Then we flip left for right and take the square root of both sides yielding ##t=\sqrt{\frac{2 \theta}{\alpha}}##
What remains is finding ##\alpha## in terms of the moment of inertia of the cube ##I_z##, the magnitude of the forces providing the torques ##F##, the moment arm for the torques ##L## and the number of forces ##n##. The result is that ##\alpha=\frac{nFL}{I_z}##.
[Your choice of variable name ##\theta_m## for the rotation angle was poor. Presented in plainish ASCII, ##\theta_m## is shown as θm which looks like angle ##\theta## multiplied by mass ##m##. I've chosen to dispense with the m subscript on ##\theta##].
In any case, once we substitute in for ##\alpha## in ##t=\sqrt{\frac{2 \theta}{\alpha}}##, we get $$t=\sqrt{\frac{2 \theta I_z}{nFL}}$$This does not match your proposed formula: tb=sqrt(θmIz/nFL). As predicted, the latter is missing a factor of two.