How long would this take?

If you took the Wordpress CMS & Use Rails To Wrap User Registration Around It.

1. A user could register and create an account 2. It would create an account for "theirwordpressapp.themainappsdomain.com" 3. User could login to edit their wordpress template

How long would this take? Forgive my ignorance here! thank YOU.