If there was a technical gliche then immediately, if there was an error on your part then 6 months of whenever your passport expires(whichever is earlier). Please hit upvote, if you are satisfied with my ans. Thanks, Radhika
You usually get a letter from embassy citing the reasons for rejection .
After that again you can re apply. Make a proper covering letter mentioning why you should be granted the visa and various supporting documents