Buzz,
24 hours is the rule of thumb most organisations use for recreational diving and its a good one to stick to.
If you then progress into the realms of technical diving then you may want to look into a bit more closely, if you have been undertaking extended length dives at depth on mixed gas then this will certainly effect it. As will the difficulty or exertion you encounter during the dive.