How long do you have to have your permit to get your license?

It varies from state to state. some states do not even require a permit before a license if the driver is 18.