What all laws/rules should we follow to create a bottle thread and corresponding thread to its cap?

I need help to make a thread successfully fit the bottle so as it is waterproof...!

SolidworksParts And Features