Hohmann's orbital transfer is explained in theory in terms of instantaneous impulses, but in real life instantaneous impulses do not exist. Finite burn is used instead. How is the burn duration calculated?
It's technically no longer a proper Hohmann orbital transfer if you add any realism to the problem, but it's still usually called that if it's close.
How is the burn duration calculated?
There may be some approximations available in texts on spaceflight, but these days people simply use a computer simulation.
In addition to burn duration, you may also want to slightly tweak the direction of thrust and exact time of burn initiation as "tweaking parameters".
If the burn is relatively short you can keep a fixed attitude with the thrust parallel to the original orbit at the anticipated midpoint of the burn where you'd normally do the instantaneous impulse (e.g. periapsis or apoapsis), and extend the burn start and stop times equally on either side in order to get the same impulse.
Then you run a simple numerical integrator and propagate the orbit past the destination and see how close you get, and iteratively adjust the details of the burn until you converge on an acceptable solution.
A good example of when even approximations break down and you need a numerical calculation is the low-thrust available from electric propulsion. In this case you may burn for days or months or even years, and it's strictly numerical orbit propagation and iterative convergence based on criteria.