Good question, there are many theories on fly time. A lot of divers choose to use a Conservative time of 24hours or more. Yes, the bubbles will come out of solution (blood stream) when the pressure changes at altitude, if you do not allow time for the bubble to come out of solution normally, how do you do that (time) thats it. You should also be drinking water as much as you can.
If you have done multiple days of diving PADI recommends 18 hours, for a single dive 12hours. PADI uses information used from Diver Alert Network for the table information. The last time PADI changed there dive tables was two years ago after D.A.N. had completed some extensive research based on real recreational divers profiles and DCS hits. Not all the time as someone suggested.
One treatment in a chamber is $20,000 it may take two or three to fix a DCS if you get it and thats if it can be fixed. Most dive computers I have used have taken a Conservative approach and fly time is 24hours. So, what is the 24hours worth to you. Every island I have been on has had cool topside stuff take the last day and check it out. BTW if you have medical questions and what answers you can trust check out
www.diversalertnetwork.org