Have you sneezed yet? That hurts. Hold your rib when coughing etc. But make sure you do regular deep breaths as the shallow breathing you will be doing can lead to pneumonia and sore muscles.
I broke a rib about 5/6 weeks ago.
Waited just under 3 weeks before getting out again on my single speed on cycle paths etc. Then when sneezing no longer hurt (was still twinging at 4 weeks) I got back out on my bike last weekend. Still not 100% but you will know when it is okay to go riding again.
You should get a burning feeling for about a week when it is really healing. After that has gone start getting back on the bike doing gentle stuff.
PS I am not a medical doctor either