How to say in Czech: How long were you single for?

English
How long were for?
Czech
Jak dlouho jsi byl svobodný?