The detention is normally for as long as it takes to conduct routine business. Once you have issued a person their citation that generally signals the end of the detention. Either the officer established some additional RS or he developed some probable cause to support a search of the vehicle that was independent of the original stop and apparent release with the citation.

