How to say in Czech: How long was he single for?

English
How long was for?
Czech
Jak dlouho byl svobodný?